Can not pass arguments to uglifyjs: –mangle-props –name-cache in webpack builtin plugin

The uglify js feature page is here: https://github.com/mishoo/UglifyJS2#mangling-property-names—mangle-props
Now I need to uglify multi file and mangle them with –mangle-props –name-cache parameters.
But I can not pass these arguments to uglify plugin.

Author: Fantashit

1 thought on “Can not pass arguments to uglifyjs: –mangle-props –name-cache in webpack builtin plugin

  1. you can use it with

    webpack.optimize.UglifyJsPlugin({
                    mangle: {
                        props: {
                            regex: regex,
                            cache: cache
                        }
                    }
    });
    

Comments are closed.