document top level minify() option safari10 (#2532)
This commit is contained in:
@@ -523,6 +523,10 @@ if (result.error) throw result.error;
|
|||||||
top level minify option `keep_classnames` is `undefined` it will be overriden with
|
top level minify option `keep_classnames` is `undefined` it will be overriden with
|
||||||
the value of the top level minify option `keep_fnames`.
|
the value of the top level minify option `keep_fnames`.
|
||||||
|
|
||||||
|
- `safari10` (default: `false`) - pass `true` to work around Safari 10/11 bugs in
|
||||||
|
loop scoping and `await`. See `safari10` options in [`mangle`](#mangle-options)
|
||||||
|
and [`output`](#output-options) for details.
|
||||||
|
|
||||||
## Minify options structure
|
## Minify options structure
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
@@ -547,11 +551,12 @@ if (result.error) throw result.error;
|
|||||||
// source map options
|
// source map options
|
||||||
},
|
},
|
||||||
ecma: 5, // specify one of: 5, 6, 7 or 8
|
ecma: 5, // specify one of: 5, 6, 7 or 8
|
||||||
nameCache: null, // or specify a name cache object
|
|
||||||
toplevel: false,
|
|
||||||
keep_classnames: false,
|
keep_classnames: false,
|
||||||
keep_fnames: false,
|
keep_fnames: false,
|
||||||
ie8: false,
|
ie8: false,
|
||||||
|
nameCache: null, // or specify a name cache object
|
||||||
|
safari10: false,
|
||||||
|
toplevel: false,
|
||||||
warnings: false,
|
warnings: false,
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user