3 ms·
Mix is great! Webpack is very powerful and complex, but 90% of the time I just need to compile CSS/Sass and ES6 Modules. For these common scenarios, Mix makes t
by neovive 9y ago
Mix is great! Webpack is very powerful and complex, but 90% of the time I just need to compile CSS/Sass and ES6 Modules. For these common scenarios, Mix makes this super-simple without having to dig into the Webpack config. If you stick with the very sensible defaults, your config can be as simple as:
mix.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css');
Here are the docs: https://laravel.com/docs/5.6/mix https://laravel.com/docs/5.6/mix