Source: poovarasu.medium.com

Few things to know about Laravel Mix

Category: Laravel, api, javascript

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.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners