css-loader-nano
Minimize CSS output of css-loader using cssnano.
Usage
Install css-loader-nano
:
npm install --save-dev css-loader css-loader-nano
webpack.config.js
moduleexports = module: rules: test: /\.less$/i use: 'style-loader' 'css-loader-nano' // minimize 'css-loader' output 'css-loader' 'less-loader' ;