@mrbuilder/plugin-uglify

4.4.7-alpha.9 • Public • Published

This plugin exposes configuration for uglification and minification. It should only be used in production builds. See uglify-plugin for more configuration options.

Its default configuration is as follows

parallel = true,
cache = true,
sourceMap = false,
extractComments = true,
uglifyOptions = {
    ie8        : false,
    ecma       : 8,
    warn       : true,
    global_defs: {
        "@alert"   : "console.log",
        DEBUG      : false,
        PRODUCTION : true,
        DEVELOPMENT: false,
    },
    compress   : {
        dead_code  : true,
        keep_fargs : false,
        keep_fnames: false,
    },
    output     : {
        comments: false,
        beautify: false,
    },
}
Property Type Default Description
parallel bool true Compress in parallel
cache bool true Cache
ecma number 8 ECMA level
global_defs object see above global definitions
compress object see above compress options
output object see above output options

Readme

Keywords

none

Package Sidebar

Install

npm i @mrbuilder/plugin-uglify

Weekly Downloads

28

Version

4.4.7-alpha.9

License

MIT

Unpacked Size

4.49 kB

Total Files

4

Last publish

Collaborators

  • speajus
  • nanandn
  • brycereynolds