I use this config for my webpack 2
{
test: /\.css$/i,
use: ExtractTextPlugin.extract({
use: 'css-loader?minimize'
})
}
How to remove all comments based on string mode ? I use this but does not work
'css-loader?minimize&{discardComments:{removeAll:true}}'
Can anyone help me ?
You could use optimize-css-assets-webpack-plugin to remove comments: example
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With