From 7fc620a463fd847fe5897048c67b85276b68f994 Mon Sep 17 00:00:00 2001 From: Asia Date: Sat, 18 Jun 2016 22:17:51 +0200 Subject: [PATCH] Document the except option to mangle Added documentation for the `except` option to the `mangle` option in the API reference. --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 041a0709..512d600f 100644 --- a/README.md +++ b/README.md @@ -658,9 +658,13 @@ Other options: - `parse` (default {}) — pass an object if you wish to specify some additional [parser options][parser]. (not all options available... see below) +##### mangle + + - `except` - pass an array of identifiers that should be excluded from mangling + ##### mangleProperties options - - `regex` — Pass a RegExp to only mangle certain names (maps to the `--mange-regex` CLI arguments option) + - `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!