README: clarify uglify (resolves #555)
This commit is contained in:
parent
0cedacddc6
commit
74f2e01978
1 changed files with 4 additions and 0 deletions
|
@ -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`.
|
**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).
|
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
|
## Examples
|
||||||
|
|
Loading…
Reference in a new issue