diff options
author | Mihai Bazon <mihai.bazon@gmail.com> | 2013-01-08 14:21:25 -0800 |
---|---|---|
committer | Mihai Bazon <mihai.bazon@gmail.com> | 2013-01-08 14:21:25 -0800 |
commit | c058d8b9cdb30b4fc14490d5274f53a84b97f78d (patch) | |
tree | 7a7b54edc9e33981f5ba070d441342d71e3feecc | |
parent | 16953c20648ee3b08cf55733ea1b3a2d1d5a80d2 (diff) | |
parent | 1d8871a092027988e386e4f0cf5a3b1057ade38d (diff) | |
download | tracifyjs-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.md | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |