Add drop_console option to the compressor

This commit is contained in:
Mihai Bazon
2013-12-10 19:44:41 +02:00
parent df8c5623af
commit dc5f70eab5
2 changed files with 12 additions and 0 deletions

View File

@@ -249,6 +249,9 @@ to set `true`; it's effectively a shortcut for `foo=true`).
statement would get discarded. The current implementation adds some
overhead (compression will be slower).
- `drop_console` -- default `false`. Pass `true` to discard calls to
`console.*` functions.
### The `unsafe` option
It enables some transformations that *might* break code logic in certain