You should not update your app.css file, but you should update the app.scss file. The app.scss will be compiled to app.css.
Dec 15, 2017
5
Level 1
laravel mix not compiling css
Hi,
currently trying to set up laravel mix to compile my scss. I run a fresh install, run npm install and npm run dev.
I'm following this video https://www.youtube.com/watch?v=TeEsyhBZhUg
However, when I run npm run watch, my js\app.js is highlighted yellow but my \cssz\app.css stays green (even when I make changes)
does anyone have any info on this please?
PS my webpack.mix.js looks like this
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
mix.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css');```
Level 88
Your config file looks correct to me. Can you remove the node_modules directory and run npm install again?
3 likes
Please or to participate in this conversation.