From 68394eed93472b2a778e1731b4e43ed0cc2359d1 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Sun, 21 Apr 2013 11:35:50 +0300 Subject: Make compress/mangle disabled by default, as before 5af144522a6fea302abdd0b63d48864de0664207 --- bin/uglifyjs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin/uglifyjs') 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 = { -- cgit v1.2.3