fis3-optimizer-terser

    4.0.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

    Install

    npm i fis3-optimizer-terser

    DownloadsWeekly Downloads

    15

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    38.4 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar