Add mangleProperties documentation to README
authorBryan Rayner <bryanerayner@gmail.com>
Wed, 27 Jan 2016 20:24:32 +0000 (14:24 -0600)
committerBryan Rayner <bryanerayner@gmail.com>
Wed, 27 Jan 2016 20:24:32 +0000 (14:24 -0600)
Add additional documentation to mangleProperties.

README.md

index 9cde9ee..4bd1cab 100644 (file)
--- a/README.md
+++ b/README.md
@@ -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!