fis3-optimizer-uglifyjs

3.1.0 • Public • Published

fis3-optimizer-uglifyjs

js minifer for fis3 based on uglifyjs.

styled with prettier npm npm npm

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 like out.js, it will replace with the currect js filename
  • if uglifyJSConf.sourceMap.url is a non-empty string like out.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

license

MIT © fisker Cheung

Package Sidebar

Install

npm i fis3-optimizer-uglifyjs

Weekly Downloads

0

Version

3.1.0

License

MIT

Unpacked Size

39.6 kB

Total Files

4

Last publish

Collaborators

  • fisker