diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-10-08 12:55:18 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-10-08 12:55:18 +0300 |
commit | dd8286bce152125d18a0af13a6088049303f2993 (patch) | |
tree | af290571ae07cd6bd42924e609d55f2a847c5ffd /README.md | |
parent | 093a9031dc15b2e2bd85850f3f3eb7fe90f01bd7 (diff) | |
download | tracifyjs-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.md | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |