Add mangleProperties documentation to README

Add additional documentation to mangleProperties.
This commit is contained in:
Bryan Rayner
2016-01-27 14:24:32 -06:00
parent 0a38a688f9
commit 3eb9101918

View File

@@ -636,6 +636,10 @@ Other options:
- `compress` (default `{}`) — pass `false` to skip compressing entirely.
Pass an object to specify custom [compressor options][compressor].
##### mangleProperties options
- `regex` — Pass a RegExp to only mangle certain names (maps to the `--mange-regex` CLI arguments option)
We could add more options to `UglifyJS.minify` — if you need additional
functionality please suggest!