aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authoralexlamsl <alexlamsl@gmail.com>2017-02-18 19:27:31 +0800
committeralexlamsl <alexlamsl@gmail.com>2017-02-21 13:29:58 +0800
commite275148998638bdcf795257ed03941ca34e33018 (patch)
treec9019dec5f4a26a2ecfa47161cada4deff1c1bf7 /README.md
parent974247c8c0e57901ef776e86784c8c9a1b87b5de (diff)
downloadtracifyjs-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.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index a2eaeae4..1d1f2fcb 100644
--- a/README.md
+++ b/README.md
@@ -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.