It says By default the mangle option is false., but actully the default mangle option is true. (We can infer this from the subsequent sentence But you can configure the plugin to avoid mangling specific variable names by passing an except list.) I also check the source code of UglifyJSPlugin at https://github.com/webpack/webpack/blob/master/lib/optimize/UglifyJsPlugin.js#L90 : if(options.mangle !== false) {...}
Unless we explicitly give it a false value, it will still do the mangling thing.
The text was updated successfully, but these errors were encountered:
In this document, http://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin.
It says
By default the mangle option is false.
, but actully the default mangle option is true. (We can infer this from the subsequent sentenceBut you can configure the plugin to avoid mangling specific variable names by passing an except list
.) I also check the source code of UglifyJSPlugin at https://github.com/webpack/webpack/blob/master/lib/optimize/UglifyJsPlugin.js#L90 :if(options.mangle !== false) {...}
Unless we explicitly give it a
false
value, it will still do the mangling thing.The text was updated successfully, but these errors were encountered: