Using Laravel Mix with Webpack for All Your Assets

Laravel Mix provides a fluent API for defining Webpack build steps for your application using several common CSS and JavaScript pre-processors.
The lovely creators of Laravel Mix, put in the common webpack configurations and you can add more custom configurations if you wish.
This is especially wonderful for people that want to use webpack, but feel like configuring webpack is too difficult. Or maybe they wanted to use ES2016 but saw some complicated article about loaders and modules.
Laravel Mix allows you to use a single line to describe what you want and it’ll use it’s preconfigured settings to process it properly…

Source: Using Laravel Mix with Webpack for All Your Assets

Originally published at Stephen AfamO’s Blog.