From 74f2e019787c314d4d9de48cc384ff49d7d3d0ba Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Fri, 8 Apr 2016 11:45:28 +1000 Subject: [PATCH] README: clarify uglify (resolves #555) --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index cdc1c18..40ae037 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,10 @@ You will then be able to load `foobar.js` into your browser, with each of the de **NOTE**: When uglifying the javascript, you must exclude the following variable names from being mangled: `Array`, `BigInteger`, `Boolean`, `Buffer`, `ECPair`, `Function`, `Number`, `Point` and `Script`. This is because of the function-name-duck-typing used in [typeforce](https://github.com/dcousens/typeforce). +Example: +``` bash +uglifyjs ... --mangle --reserved 'Array,BigInteger,Boolean,Buffer,ECPair,Function,Number,Point' +``` ## Examples