3 ms·
> How long before we have tools which generate webpack configuration programatically, and which need configuration themselves. Haha, too late! I actually reall
by dabernathy89 9y ago
> How long before we have tools which generate webpack configuration programatically, and which need configuration themselves.
Haha, too late! I actually really enjoy using Laravel Mix, which despite the name is not tied to Laravel. It's a Webpack wrapper that simplifies it significantly for many common use cases.
https://github.com/JeffreyWay/laravel-mix https://github.com/JeffreyWay/laravel-mix
- neovive 9y agoMix 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