diff options
author | Jiavan <jiavan.com@gmail.com> | 2018-06-01 16:47:11 +0800 |
---|---|---|
committer | Alex Lam S.L <alexlamsl@gmail.com> | 2018-06-01 16:47:11 +0800 |
commit | b39043f3ab0061f2db91514dbb69e85a49a99997 (patch) | |
tree | 5ab5756a1e6aa9a54c7912258739e6247439d997 /bin | |
parent | caf96acb08ad8113f03299a939b4a45ef44ffa42 (diff) | |
download | tracifyjs-b39043f3ab0061f2db91514dbb69e85a49a99997.tar.gz tracifyjs-b39043f3ab0061f2db91514dbb69e85a49a99997.zip |
re-introduce `enclose` (#3163)
fixes #2443
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/uglifyjs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/uglifyjs b/bin/uglifyjs index 7617d781..fb6ae2fb 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -40,6 +40,7 @@ program.option("-o, --output <file>", "Output file (default STDOUT)."); program.option("--comments [filter]", "Preserve copyright comments in the output."); program.option("--config-file <file>", "Read minify() options from JSON file."); program.option("-d, --define <expr>[=value]", "Global definitions.", parse_js("define")); +program.option("-e, --enclose [arg[,...][:value[,...]]]", "Embed everything in a big function, with configurable argument(s) & value(s)."); 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>", "File to hold mangled name mappings."); @@ -47,7 +48,7 @@ program.option("--rename", "Force symbol expansion."); 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_js()); -program.option("--timings", "Display operations run time on STDERR.") +program.option("--timings", "Display operations run time on STDERR."); program.option("--toplevel", "Compress and/or mangle variables in toplevel scope."); program.option("--verbose", "Print diagnostic messages."); program.option("--warn", "Print warning messages."); @@ -61,6 +62,7 @@ if (!program.output && program.sourceMap && program.sourceMap.url != "inline") { } [ "compress", + "enclose", "ie8", "mangle", "sourceMap", |