Closed matzeeable closed 6 years ago
Use https://github.com/leodido/postcss-clean npm install --save-dev postcss-clean
npm install --save-dev postcss-clean
postcss.config.js
module.exports = ({ file, options, env }) => ({ plugins: [ require('autoprefixer') ].concat(env === 'production' || env === 'umd' ? [require('postcss-clean')(options.clean)] : []) });
webpack.config.js
loader: 'postcss-loader', options: { config: { ctx: { clean: {} } } }
Use https://github.com/leodido/postcss-clean
npm install --save-dev postcss-clean
postcss.config.js
webpack.config.js