when writing Webpack applications, you want to delete comments on compiled files
but do not want to compress JS files. Previously, delete and do not compress JS files using Uglifyjs.
in Webpack4, mode is none or development seems to skip minimizer
and the configuration that looks like Uglifyjs comments: false
cannot delete comments
in addition, Uglifyjs seems to have no way to add raw banner? Do not use / * * /
to enclose
tested
mode is none or development seems to skip minimizer directly
will not skip the minimizer, problem, that is, how to delete comments without compressing the file
minimizer: [
new UglifyJsPlugin({
uglifyOptions: ({
compress: false
})
})
]
is still compressed