Skip to content

Commit

Permalink
clarify what --mangle-props does (#2012)
Browse files Browse the repository at this point in the history
  • Loading branch information
kzc authored and alexlamsl committed May 27, 2017
1 parent 78309a2 commit 1ff8e9d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ff8e9d

Please sign in to comment.