aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAshley (Scirra) <ashley@scirra.com>2016-10-27 11:23:04 -0400
committerRichard van Velzen <rvanvelzen1@gmail.com>2016-11-29 20:25:39 +0100
commit2a9989dd18c01081c486fe9089e3bb64079c773b (patch)
treebe59842ce6761ae625bd9a0d7f79b88c6f38ae2b /bin
parent79b98a9fe87f950607c601a45a3566a46c32f425 (diff)
downloadtracifyjs-2a9989dd18c01081c486fe9089e3bb64079c773b.tar.gz
tracifyjs-2a9989dd18c01081c486fe9089e3bb64079c773b.zip
Add --mangle-props-debug and fix --mangle-props=unquoted collision
Patch by @AshleyScirra Based on: PR #1316 Renamed the CLI debug option to --mangle-props-debug Fixes: #1321 name collision in --mangle-props=unquoted
Diffstat (limited to 'bin')
-rwxr-xr-xbin/uglifyjs4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/uglifyjs b/bin/uglifyjs
index ce2e9411..d5025827 100755
--- a/bin/uglifyjs
+++ b/bin/uglifyjs
@@ -98,6 +98,7 @@ You need to pass an argument to this option to specify the name that your module
.string("beautify")
.string("m")
.string("mangle")
+ .string("mangle-props-debug")
.string("c")
.string("compress")
.string("d")
@@ -419,7 +420,8 @@ async.eachLimit(files, 1, function (file, cb) {
cache : cache,
only_cache : !ARGS.mangle_props,
regex : regex,
- ignore_quoted : ARGS.mangle_props == 2
+ ignore_quoted : ARGS.mangle_props == 2,
+ debug : typeof ARGS.mangle_props_debug === "undefined" ? false : ARGS.mangle_props_debug
});
writeNameCache("props", cache);
})();