public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6fa291
)
Add keep_fnames compressor option to README.md
author
Andrew Levine
<theandrewtizer@gmail.com>
Tue, 2 Jun 2015 20:32:10 +0000
(15:32 -0500)
committer
Andrew Levine
<theandrewtizer@gmail.com>
Tue, 2 Jun 2015 20:32:10 +0000
(15:32 -0500)
README.md
patch
|
blob
|
history
diff --git
a/README.md
b/README.md
index
f3eb5f7
..
4257915
100644
(file)
--- a/
README.md
+++ b/
README.md
@@
-345,6
+345,11
@@
to set `true`; it's effectively a shortcut for `foo=true`).
compressor from discarding unused function arguments. You need this
for code which relies on `Function.length`.
+- `keep_fnames` -- default `false`. Pass `true` to prevent the
+ compressor from mangling/discarding function names. Useful for code relying on
+ `Function.prototype.name`.
+
+
### The `unsafe` option
It enables some transformations that *might* break code logic in certain