From 2a9989dd18c01081c486fe9089e3bb64079c773b Mon Sep 17 00:00:00 2001 From: "Ashley (Scirra)" Date: Thu, 27 Oct 2016 11:23:04 -0400 Subject: 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 --- bin/uglifyjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') 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); })(); -- cgit v1.2.3