Jeffrey Way’s Laravel Mix package provides a fluent API for constructing webpack build steps for your Laravel application utilizing a variety of CSS and JavaScript pre-processors. To put it another way, Mix makes compiling and minifying your application’s CSS and JavaScript files a breeze. Minification is the process of minimizing code and markup in the web pages and script files.
Because Mix is a configuration layer on top of webpack, all you have to do to run your Mix tasks is run one of the NPM scripts included in the default Laravel package.json file. All of your application’s CSS and JavaScript assets will be compiled and stored in the public directory when you execute the dev or production scripts.