diff options
author | Mihai Bazon <mihai@bazon.net> | 2013-04-21 11:35:50 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2013-04-21 11:35:50 +0300 |
commit | 68394eed93472b2a778e1731b4e43ed0cc2359d1 (patch) | |
tree | 8f665153c2a7116e648cbab9a8d98b6f1ed74a02 /bin | |
parent | 753b4b6cc8aff37b9678b3bc3a883874bf4cac51 (diff) | |
download | tracifyjs-68394eed93472b2a778e1731b4e43ed0cc2359d1.tar.gz tracifyjs-68394eed93472b2a778e1731b4e43ed0cc2359d1.zip |
Make compress/mangle disabled by default, as before 5af144522a6fea302abdd0b63d48864de0664207
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/uglifyjs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/uglifyjs b/bin/uglifyjs index aecc0726..ee32fdf1 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -114,21 +114,21 @@ if (ARGS.acorn) { acorn = require("acorn"); } -var COMPRESS = getOptions("c", true) || {}; -var MANGLE = getOptions("m", true) || {}; +var COMPRESS = getOptions("c", true); +var MANGLE = getOptions("m", true); var BEAUTIFY = getOptions("b", true); if (ARGS.d) { - COMPRESS.global_defs = getOptions("d"); + if (COMPRESS) COMPRESS.global_defs = getOptions("d"); } if (ARGS.screw_ie8) { - COMPRESS.screw_ie8 = true; - MANGLE.screw_ie8 = true; + if (COMPRESS) COMPRESS.screw_ie8 = true; + if (MANGLE) MANGLE.screw_ie8 = true; } if (ARGS.r) { - MANGLE.except = ARGS.r.replace(/^\s+|\s+$/g).split(/\s*,+\s*/); + if (MANGLE) MANGLE.except = ARGS.r.replace(/^\s+|\s+$/g).split(/\s*,+\s*/); } var OUTPUT_OPTIONS = { |