Skip to content
This repository was archived by the owner on Aug 8, 2019. It is now read-only.
This repository was archived by the owner on Aug 8, 2019. It is now read-only.

mangle option for UglifyJsPlugin is true, not false #49

@PinkyJie

Description

@PinkyJie

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions