diff options
author | kzc <kzc@users.noreply.github.com> | 2017-05-26 14:28:43 -0400 |
---|---|---|
committer | Alex Lam S.L <alexlamsl@gmail.com> | 2017-05-27 02:28:43 +0800 |
commit | 78309a293d88e4ac59477af71a3cff4766f94371 (patch) | |
tree | 13f5916fee6bedb11125e83e97c9882c414fd70b | |
parent | 695e182d596c00bfdf9bacff36fd8e65c6f35bf3 (diff) | |
download | tracifyjs-78309a293d88e4ac59477af71a3cff4766f94371.tar.gz tracifyjs-78309a293d88e4ac59477af71a3cff4766f94371.zip |
better document mangle properties options (#2009)
-rw-r--r-- | README.md | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -712,10 +712,15 @@ UglifyJS.minify(code, { mangle: { toplevel: true } }).code; ### Mangle properties options -- `regex` — Pass a RegExp to only mangle certain names -- `keep_quoted` — Only mangle unquoted property names -- `debug` — Mangle names with the original name still present. Defaults to `false`. - Pass an empty string to enable, or a non-empty string to set the suffix. +- `reserved` (default: `[]`) -- Do not mangle property names listed in the + `reserved` array. +- `regex` (default: `null`) -— Pass a RegExp literal to only mangle property + names matching the regular expression. +- `keep_quoted` (default: `false`) -— Only mangle unquoted property names. +- `debug` (default: `false`) -— Mangle names with the original name still present. + Pass an empty string `""` to enable, or a non-empty string to set the debug suffix. +- `builtins` (default: `false`) -- Use `true` to allow the mangling of builtin + DOM properties. Not recommended to override this setting. ## Output options |