aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Bazon <mihai.bazon@gmail.com>2013-01-08 14:21:25 -0800
committerMihai Bazon <mihai.bazon@gmail.com>2013-01-08 14:21:25 -0800
commitc058d8b9cdb30b4fc14490d5274f53a84b97f78d (patch)
tree7a7b54edc9e33981f5ba070d441342d71e3feecc
parent16953c20648ee3b08cf55733ea1b3a2d1d5a80d2 (diff)
parent1d8871a092027988e386e4f0cf5a3b1057ade38d (diff)
downloadtracifyjs-c058d8b9cdb30b4fc14490d5274f53a84b97f78d.tar.gz
tracifyjs-c058d8b9cdb30b4fc14490d5274f53a84b97f78d.zip
Merge pull request #90 from jakearchibald/patch-1
Compressor options use underscores rather than hyphens
-rw-r--r--README.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index 802ea1c1..bb8521b2 100644
--- a/README.md
+++ b/README.md
@@ -158,8 +158,8 @@ the available options (all are `true` by default, except `hoist_vars`):
- `sequences` -- join consecutive simple statements using the comma operator
- `properties` -- rewrite property access using the dot notation, for
example `foo["bar"] → foo.bar`
-- `dead-code` -- remove unreachable code
-- `drop-debugger` -- remove `debugger;` statements
+- `dead_code` -- remove unreachable code
+- `drop_debugger` -- remove `debugger;` statements
- `unsafe` -- apply "unsafe" transformations (discussion below)
- `conditionals` -- apply optimizations for `if`-s and conditional
expressions
@@ -172,11 +172,11 @@ the available options (all are `true` by default, except `hoist_vars`):
- `loops` -- optimizations for `do`, `while` and `for` loops when we can
statically determine the condition
- `unused` -- drop unreferenced functions and variables
-- `hoist-funs` -- hoist function declarations
-- `hoist-vars` -- hoist `var` declarations (this is `false` by default
+- `hoist_funs` -- hoist function declarations
+- `hoist_vars` -- hoist `var` declarations (this is `false` by default
because it seems to increase the size of the output in general)
-- `if-return` -- optimizations for if/return and if/continue
-- `join-vars` -- join consecutive `var` statements
+- `if_return` -- optimizations for if/return and if/continue
+- `join_vars` -- join consecutive `var` statements
- `cascade` -- small optimization for sequences, transform `x, x` into `x`
and `x = something(), x` into `x = something()`
- `warnings` -- display warnings when dropping unreachable code or unused