aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-10-08 12:55:18 +0300
committerMihai Bazon <mihai@bazon.net>2012-10-08 12:55:18 +0300
commitdd8286bce152125d18a0af13a6088049303f2993 (patch)
treeaf290571ae07cd6bd42924e609d55f2a847c5ffd /README.md
parent093a9031dc15b2e2bd85850f3f3eb7fe90f01bd7 (diff)
downloadtracifyjs-dd8286bce152125d18a0af13a6088049303f2993.tar.gz
tracifyjs-dd8286bce152125d18a0af13a6088049303f2993.zip
added --self to easily get a browser-runnable version of UglifyJS
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index 5eb28bae..85993076 100644
--- a/README.md
+++ b/README.md
@@ -66,6 +66,15 @@ The available options are:
--acorn Use Acorn for parsing. [boolean]
--spidermonkey Assume input fles are SpiderMonkey AST format (as JSON).
[boolean]
+ --self Build itself (UglifyJS2) as a library (implies
+ --wrap=UglifyJS --export-all) [boolean]
+ --wrap Embed everything in a big function, making the “exports”
+ and “global” variables available. You need to pass an
+ argument to this option to specify the name that your
+ module will take when included in, say, a browser.
+ [string]
+ --export-all Only used when --wrap, this tells UglifyJS to add code to
+ automatically export all globals. [boolean]
-v, --verbose Verbose [boolean]
Specify `--output` (`-o`) to declare the output file. Otherwise the output