I would like to use the Webpack UglifyJSPlugin to only remove comments from my bundle. I currently have the following UglifyJSPlugin configuration:
webpackPlugins = [
new DedupePlugin(),
new UglifyJsPlugin({
compress: false,
minimize: false,
outputs: {
comments: false
}
})
]
However, this still seems to minify the entire bundle. Is there another option to remove comments I am not taking advantage of? Is there a way to do this properly with UglifyJSPlugin?