Explain mangle-props better in readme

This commit is contained in:
Shrey Banga 2016-06-13 15:21:39 -07:00
parent af42bbe976
commit 3eed8181d9

View File

@ -135,14 +135,14 @@ The available options are:
--mangle-props
--mangle-props Mangle property names (default `0`). Set to
`true` or `1` to mangle all property names. Set
to `2` to only mangle unquoted property names.
This also enables the `keep_quoted_props`
beautifier option to preserve the quotes around
property names and disables the `properties`
compressor option to prevent rewriting quoted
properties with dot notation. You can override
these by setting them explicitly on the command
line.
to `unquoted` or `2` to only mangle unquoted
property names. Mode `2` also enables the
`keep_quoted_props` beautifier option to
preserve the quotes around property names and
disables the `properties` compressor option to
prevent rewriting quoted properties with dot
notation. You can override these by setting
them explicitly on the command line.
--mangle-regex Only mangle property names matching the regex
--name-cache File to hold mangled names mappings
--pure-funcs List of functions that can be safely removed if