mirror of https://github.com/curbengh/hexo-yam
fix(js): remove 'priority' option
- Terser really doesn't like unsupported options
- 'priority' is introduced in 887eeda3cc
This commit is contained in:
parent
de425e4b6f
commit
2548eb20bf
|
@ -90,8 +90,9 @@ function minifyJs (str, data) {
|
||||||
// Terser doesn't like unsupported options
|
// Terser doesn't like unsupported options
|
||||||
const jsOptions = Object.assign({}, options)
|
const jsOptions = Object.assign({}, options)
|
||||||
delete jsOptions.enable
|
delete jsOptions.enable
|
||||||
delete jsOptions.exclude
|
delete jsOptions.priority
|
||||||
delete jsOptions.logger
|
delete jsOptions.logger
|
||||||
|
delete jsOptions.exclude
|
||||||
delete jsOptions.globOptions
|
delete jsOptions.globOptions
|
||||||
|
|
||||||
const { code } = Terser.minify(str, jsOptions)
|
const { code } = Terser.minify(str, jsOptions)
|
||||||
|
|
Loading…
Reference in New Issue