Nascent Political Miscreant
    Wondering what’s next for npm?Check out our public roadmap! »

    fis3-optimizer-terser

    3.0.6 • 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

    11

    Version

    3.0.6

    License

    MIT

    Unpacked Size

    33.8 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar