aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkzc <kzc@users.noreply.github.com>2017-05-27 01:17:30 -0400
committerAlex Lam S.L <alexlamsl@gmail.com>2017-05-27 13:17:30 +0800
commit1ff8e9dd386beb071945c4e3f73ed347c72527d8 (patch)
treecb6545bc419a82e31b0cdd74cc1d90048655c064
parent78309a293d88e4ac59477af71a3cff4766f94371 (diff)
downloadtracifyjs-1ff8e9dd386beb071945c4e3f73ed347c72527d8.tar.gz
tracifyjs-1ff8e9dd386beb071945c4e3f73ed347c72527d8.zip
clarify what --mangle-props does (#2012)
-rw-r--r--README.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/README.md b/README.md
index 9db3e6c7..985fe507 100644
--- a/README.md
+++ b/README.md
@@ -218,10 +218,11 @@ to prevent the `require`, `exports` and `$` names from being changed.
### CLI mangling property names (`--mangle-props`)
-**Note:** this will probably break your code. Mangling property names is a
-separate step, different from variable name mangling. Pass
-`--mangle-props`. It will mangle all properties that are seen in some
-object literal, or that are assigned to. For example:
+**Note:** THIS WILL PROBABLY BREAK YOUR CODE. Mangling property names
+is a separate step, different from variable name mangling. Pass
+`--mangle-props` to enable it. It will mangle all properties in the
+input code with the exception of built in DOM properties and properties
+in core javascript classes. For example:
```javascript
// example.js