Laravel - Compiling Assets - Sass
The sass
method allows you to compile Sass into CSS that can be understood by web browsers. The sass
method accepts the path to your Sass file as its first argument and the directory where the compiled file should be placed as its second argument:
mix.sass('resources/sass/app.scss', 'public/css');
You may compile multiple Sass files into their own respective CSS files and even customize the output directory of the resulting CSS by calling the sass
method multiple times:
mix.sass('resources/sass/app.sass', 'public/css')
.sass('resources/sass/admin.sass', 'public/css/admin');