Closed RyenNelsen closed 5 years ago
I would expect it to actually compile if the mangle property is set.
mangle
While compiling, webpack exits with the error:
UglifyJs Plugin Invalid Options options should NOT have additional properties ValidationError: UglifyJs Plugin Invalid Options
// webpack.config.js optimization: { minimizer: [ new UglifyjsWebpackPlugin({ cache: true, parallel: true, mangle: false, }), ], },
I also tried:
// webpack.config.js optimization: { minimizer: [ new UglifyjsWebpackPlugin({ cache: true, parallel: true, mangle: true, }), ], },
Just try setting the mangle property.
If I remove the property, webpack will compile and UglifyJs will mangle the output. My end goal is to be able to set mangle.properties.
mangle.properties
https://github.com/webpack-contrib/uglifyjs-webpack-plugin#uglifyoptions
Put this option in uglifyOptions option.
uglifyOptions
Expected Behavior
I would expect it to actually compile if the
mangle
property is set.Actual Behavior
While compiling, webpack exits with the error:
Code
I also tried:
How Do We Reproduce?
Just try setting the
mangle
property.If I remove the property, webpack will compile and UglifyJs will mangle the output. My end goal is to be able to set
mangle.properties
.