From 118a88c05cefe8badf51555ea88df29dffad95dc Mon Sep 17 00:00:00 2001 From: kzc Date: Sun, 21 May 2017 21:54:51 -0400 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b1bbd66f..45c95e3a 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ a double dash to prevent input files being used as option arguments: `url` If specified, path to the source map to append in `//# sourceMappingURL`. --stats Display operations run time on STDERR. - --toplevel Compress and/or mangle variables in toplevel scope. + --toplevel Compress and/or mangle variables in top level scope. --verbose Print diagnostic messages. --warn Print warning messages. --wrap Embed everything in a big function, making the @@ -202,7 +202,7 @@ Example: To enable the mangler you need to pass `--mangle` (`-m`). The following (comma-separated) options are supported: -- `toplevel` — mangle names declared in the toplevel scope (disabled by +- `toplevel` — mangle names declared in the top level scope (disabled by default). - `eval` — mangle names visible in scopes where `eval` or `with` are used @@ -551,7 +551,7 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u assignments do not count as references unless set to `"keep_assign"`) - `toplevel` -- drop unreferenced functions (`"funcs"`) and/or variables (`"vars"`) - in the toplevel scope (`false` by default, `true` to drop both unreferenced + in the top level scope (`false` by default, `true` to drop both unreferenced functions and variables) - `top_retain` -- prevent specific toplevel functions and variables from `unused` @@ -631,7 +631,7 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u - `reserved` - pass an array of identifiers that should be excluded from mangling -- `toplevel` — mangle names declared in the toplevel scope (disabled by +- `toplevel` — mangle names declared in the top level scope (disabled by default). - `eval` — mangle names visible in scopes where eval or with are used