diff options
author | alexlamsl <alexlamsl@gmail.com> | 2017-02-18 19:27:31 +0800 |
---|---|---|
committer | alexlamsl <alexlamsl@gmail.com> | 2017-02-21 13:29:58 +0800 |
commit | e275148998638bdcf795257ed03941ca34e33018 (patch) | |
tree | c9019dec5f4a26a2ecfa47161cada4deff1c1bf7 /README.md | |
parent | 974247c8c0e57901ef776e86784c8c9a1b87b5de (diff) | |
download | tracifyjs-e275148998638bdcf795257ed03941ca34e33018.tar.gz tracifyjs-e275148998638bdcf795257ed03941ca34e33018.zip |
enhance `global_defs`
- support arrays, objects & AST_Node
- support `"a.b":1` on both cli & API
- emit warning if variable is modified
- override top-level variables
fixes #1416
closes #1198
closes #1469
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -454,6 +454,8 @@ if (DEBUG) { } ``` +You can specify nested constants in the form of `--define env.DEBUG=false`. + UglifyJS will warn about the condition being always false and about dropping unreachable code; for now there is no option to turn off only this specific warning, you can pass `warnings=false` to turn off *all* warnings. |