[Pkg-javascript-commits] [uglifyjs] 115/491: reformat mangle options section of README (#2036)
Jonas Smedegaard
dr at jones.dk
Wed Feb 14 19:51:27 UTC 2018
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/3.3.10-1
in repository uglifyjs.
commit f71e8fd9488b28b92e6897254b7a54cf51471557
Author: kzc <kzc at users.noreply.github.com>
Date: Wed May 31 09:52:43 2017 -0400
reformat mangle options section of README (#2036)
---
README.md | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index d9a0162..b6b52a4 100644
--- a/README.md
+++ b/README.md
@@ -680,17 +680,18 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u
## Mangle options
-- `reserved` - pass an array of identifiers that should be excluded from mangling
+- `reserved` (default `[]`). Pass an array of identifiers that should be
+ excluded from mangling. Example: `["foo", "bar"]`.
-- `toplevel` — mangle names declared in the top level scope (disabled by
-default).
+- `toplevel` (default `false`). Pass `true` to mangle names declared in the
+ top level scope.
-- `eval` — mangle names visible in scopes where eval or with are used
-(disabled by default).
+- `keep_fnames` (default `false`). Pass `true` to not mangle function names.
+ Useful for code relying on `Function.prototype.name`. See also: the `keep_fnames`
+ [compress option](#compress-options).
-- `keep_fnames` -- default `false`. Pass `true` to not mangle
-function names. Useful for code relying on `Function.prototype.name`.
-See also: the `keep_fnames` [compress option](#compress-options).
+- `eval` (default `false`). Pass `true` to mangle names visible in scopes
+ where `eval` or `with` are used.
Examples:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list