javascript - UglifyJS property mangling -


according docs, uglifyjs can mangle property names except on provided reserved list. possible other way, properties on provided list mangled?

if so, options need pass uglify.minify(files, { ... })?

one (ugly) command-line approach achieve kind of whitelist you're looking might use regex option.

you can use regular expression define property names should mangled. example, --mangle-regex="/^_/" mangle property names start underscore.

uglifyjs2 readme

otherwise, there open issue provides code use modify uglify achieves believe you're looking for.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -