fis3-optimizer-uglifyjs
js minifer for fis3 based on uglifyjs.
install
npm install --global fis3-optimizer-uglifyjs
usage
// fis-conf.js
const uglifyJSConf = {}
fis.match('*.js', {
optimizer: fis.plugin('uglifyjs', uglifyJSConf),
})
options
const uglifyJSConf = {}
notice:
- if
uglifyJSConf.sourceMap
is a object, - if
uglifyJSConf.sourceMap.filename
is a non-empty string likeout.js
, it will replace with the currect js filename - if
uglifyJSConf.sourceMap.url
is a non-empty string likeout.js.map
, it will replace with the currect map filename,uglifyJSConf.sourceMap.url
===inline
behavior as except
options:
https://github.com/mishoo/UglifyJS2#minify-options
links
-
fis3: http://fis.baidu.com/
-
UglifyJS2: https://github.com/mishoo/UglifyJS2
license
MIT © fisker Cheung