Laravel provides a fluent utility to compile all your frontend assets like stylesheets and scripts called Laravel Mix. In this post, we will find out what is Laravel Mix and how we can use it.
What is Laravel Mix?
According to Laravel’s Offical Documentation:
Laravel Mix provides a fluent API for defining Webpack build steps for your Laravel application using several common CSS and JavaScript pre-processors.
If you have ever tried to use WebPack for assets compilation, you will find out how easy it is with Mix to compile all your assets. You define assets compilation with a single line and it’s preconfigured settings will do the job for you.
In the webpack.mix.js file we will manage all our assets which need to be compiled. You can find this file at the root of the Laravel application.
You can read this full article at Laravel Mix
Top comments (0)