aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Levine <theandrewtizer@gmail.com>2015-06-02 15:32:10 -0500
committerAndrew Levine <theandrewtizer@gmail.com>2015-06-02 15:32:10 -0500
commit65ee5af78ca3ec85dee8870a452845f1a4c871f7 (patch)
treef8f0534ccdca0b5949005a83fbdd9b58a6a10152
parentc6fa2915715f0a1a2b1527c23388bd7de56284c4 (diff)
downloadtracifyjs-65ee5af78ca3ec85dee8870a452845f1a4c871f7.tar.gz
tracifyjs-65ee5af78ca3ec85dee8870a452845f1a4c871f7.zip
Add keep_fnames compressor option to README.md
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index f3eb5f71..42579151 100644
--- 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