Roni's avatar
Level 33

No output from laravel mix

Just started a new default project of laravel with no changes and ran mix, and noticed no output was generated for the CSS file even though there is default CSS included with laravel.

Is this likely a localized bug, some weird cache? Or is something happening with laravel mix at the moment?

0 likes
3 replies
Roni's avatar
Roni
OP
Best Answer
Level 33

Dammit!

Thats annoying!

Once the laravel/ui package has been installed, you may install the frontend scaffolding using the ui Artisan command:

// Generate basic scaffolding...
php artisan ui bootstrap
php artisan ui vue
php artisan ui react

// Generate login / registration scaffolding...
php artisan ui bootstrap --auth
php artisan ui vue --auth
php artisan ui react --auth

The problem is if you use the default php artisan ui:auth which DOES show up in the command list... It uses bootstrap classes but NOT the bootstrap framework.

That command should be stripped out or overridden.

jlrdw's avatar

I agree, I actually just downloaded bootstrap the minified version, and renamed it to app.css.

In the prior versions npm was never required before.

Roni's avatar
Level 33

The other commands all actually use the bootstrap css as well. Essentially they are the same blade files. By separating the whole package I thought they might take advantage and give some options like tailwind. I think its a missed opportunity.

That being said theyve made it easy enough to write a preset command, that Im not sure why I just dont take a day and make my own.

Im also having issues with yarn, they changed the scripts to run npm even if you start out with yarn in package.json. And for some reason cross-env isnt installing properly.

Just a host of small annoyances, that took a couple of hours to figure out.

Please or to participate in this conversation.