I have this setup in my webpack.config for loading my css files. I need to disable minify on my css files only.
{
test: /\.sass$/,
//loaders: ['style', 'css', 'sass']
loader: ExtractTextPlugin.extract('style', 'css-loader!less-loader')
}
in my plugins i have:
new webpack.optimize.UglifyJsPlugin({
exclude: [/file\.css$/],
minimize: true
})
Based on what I have been reading mixing UglifyJsPlugin and css-loader together is what causes the minifying of CSS. The problem is there are multiple bugs where it outputs invalid CSS.
it is still minifying my css despite these various attempts to disable for css.
How can disable minify for css but still minify my js files?
UglifyJsPluginis for JS btw, not CSS.