Add passes compress option. Fix duplicate compress warnings.

This commit is contained in:
kzc
2016-04-12 09:19:38 -04:00
committed by Richard van Velzen
parent e4fa4b109a
commit c55dd5ed74
7 changed files with 66 additions and 44 deletions

View File

@@ -356,6 +356,9 @@ to set `true`; it's effectively a shortcut for `foo=true`).
compressor from mangling/discarding function names. Useful for code relying on
`Function.prototype.name`.
- `passes` -- default `1`. Number of times to run compress. Use an
integer argument larger than 1 to further reduce code size in some cases.
Note: raising the number of passes will increase uglify compress time.
### The `unsafe` option