introduce --output-opts CLI option (#3678)

closes #3675
This commit is contained in:
Alex Lam S.L
2020-01-08 20:44:03 +08:00
committed by GitHub
parent 14c35739dd
commit 5d258259a4
5 changed files with 41 additions and 18 deletions

View File

@@ -87,6 +87,7 @@ a double dash to prevent input files being used as option arguments:
`wrap_iife` Wrap IIFEs in parenthesis. Note: you may
want to disable `negate_iife` under
compressor options.
-O, --output-opts [options] Specify output options (`beautify` disabled by default).
-o, --output <file> Output file path (default STDOUT). Specify `ast` or
`spidermonkey` to write UglifyJS or SpiderMonkey AST
as JSON to STDOUT respectively.