fis3-optimizer-terser

4.1.0 • Public • Published

fis3-optimizer-terser

js minifer for fis based on terser.

styled with prettier npm npm npm

install

npm install --global fis3-optimizer-terser

usage

// fis-conf.js

const uglifyJSConf = {}

fis.match('*.js', {
  optimizer: fis.plugin('terser', 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-terser

Weekly Downloads

0

Version

4.1.0

License

MIT

Unpacked Size

39.9 kB

Total Files

4

Last publish

Collaborators

  • fisker