Laravel Mix clean-css
This extension adds support for clean-css to Laravel Mix by using the clean-css-loader.
Installation
npm i -D laravel-mix-clean-css
Usage
Require the extension inside your webpack.mix.js
and add clean-css configurations like this:
const mix = ; ; mix // Run clean-css on all stylesheets // Run clean-css only on one specific stylesheet // Run clean-css only on multiple specific stylesheets
For more information about clean-css configurations please refer to their documentation.