Introduction
Laravel Mix is a handy Webpack wrapper for frontend asset building pipelines. It definitely helps any Laravel developer which wants to avoid the pain of Webpack setup and configuration.
For example, the following 2 lines:
mix.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css');
will apply
- module bundling, minification, and concatenation using the
app.js
JavaScript file as entry point, writing the …