How do you compile assets? Using npm run dev? What is the content of app.scss?
Mar 13, 2020
32
Level 1
Laravel mix not compiling scss files
Hi, I just started learning Laravel and I've got a good understanding of routes, views, and layouts. my problem is with compiling assets and especially scss, I'm trying to set up laravel mix to compile my scss when I make a change and run npm run watch i get that nothing is wrong but nothing changes. does anyone can help me with this, please? It's been two days and I'm still having this problem, I've tried everything but nothing works. (I've tried deleting node_modules and run npm install it doesn't work)
My webpack.mix.js looks like this:
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| 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/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css');
Please or to participate in this conversation.