New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mangle option for UglifyJsPlugin is true, not false #49

Closed
PinkyJie opened this Issue Nov 25, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@PinkyJie

PinkyJie commented Nov 25, 2015

In this document, http://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin.

list_of_plugins

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.

@PinkyJie

This comment has been minimized.

Show comment
Hide comment
@PinkyJie

PinkyJie May 20, 2016

Seems the latest documentation fixed this issue.

PinkyJie commented May 20, 2016

Seems the latest documentation fixed this issue.

@PinkyJie PinkyJie closed this May 20, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment