From f4e2fb9864a8c5dd6fb24870c4c09761b5914f75 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sun, 19 Nov 2017 19:29:51 +0800 Subject: expand symbol space to improve compression (#2460) - give globally distinct names to distinct variables - improve ability to compress cross-scoped - introduce `options.rename` to `minify()` - default `true` if both `compress` & `mangle` --- bin/uglifyjs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/uglifyjs b/bin/uglifyjs index 04c402d3..661f7260 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -47,6 +47,7 @@ program.option("-d, --define [=value]", "Global definitions.", parse_js("d program.option("--ie8", "Support non-standard Internet Explorer 8."); program.option("--keep-fnames", "Do not mangle/drop function names. Useful for code relying on Function.prototype.name."); program.option("--name-cache ", "File to hold mangled name mappings."); +program.option("--no-rename", "Disable symbol expansion."); program.option("--self", "Build UglifyJS as a library (implies --wrap UglifyJS)"); program.option("--source-map [options]", "Enable source map/specify source map options.", parse_source_map()); program.option("--timings", "Display operations run time on STDERR.") @@ -65,6 +66,7 @@ if (!program.output && program.sourceMap && program.sourceMap.url != "inline") { "compress", "ie8", "mangle", + "rename", "sourceMap", "toplevel", "wrap" -- cgit v1.2.3