aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMihai Bazon <mihai.bazon@gmail.com>2013-08-20 17:45:52 +0300
committerMihai Bazon <mihai.bazon@gmail.com>2013-08-20 17:45:52 +0300
commited80b4a534083510082419b305e0b60b395b10c6 (patch)
tree9a264d89beb4304dfcbdae48572cf4d7e142154e /README.md
parent4f09df238e15bfb9d03d28ba718c402bad0b1078 (diff)
downloadtracifyjs-ed80b4a534083510082419b305e0b60b395b10c6.tar.gz
tracifyjs-ed80b4a534083510082419b305e0b60b395b10c6.zip
Move support for `negate_iife` in the compressor, rather than code generator
(the code generator doesn't maintain enough context to know whether the return value is important or discarded) Fixes #272
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 3 insertions, 4 deletions
diff --git a/README.md b/README.md
index b735eb6e..ad394b25 100644
--- a/README.md
+++ b/README.md
@@ -209,6 +209,9 @@ to set `true`; it's effectively a shortcut for `foo=true`).
and `x = something(), x` into `x = something()`
- `warnings` -- display warnings when dropping unreachable code or unused
declarations etc.
+- `negate_iife` -- negate "Immediately-Called Function Expressions"
+ where the return value is discarded, to avoid the parens that the
+ code generator would insert.
### The `unsafe` option
@@ -296,10 +299,6 @@ can pass additional arguments that control the code output:
you pass `false` then whenever possible we will use a newline instead of a
semicolon, leading to more readable output of uglified code (size before
gzip could be smaller; size after gzip insignificantly larger).
-- `negate-iife` (default `!beautify`) -- prefer negation, rather than
- parens, for "Immediately-Called Function Expressions". This defaults to
- `true` when beautification is off, and `false` if beautification is on;
- pass it manually to force a value.
### Keeping copyright notices or other comments