This package has been deprecated

Author message:

Deprecated

terser-brunch

4.1.0 • Public • Published

terser-brunch

Adds Terser support to Brunch.

The plugin will minify your JavaScript files. Supports modern language features.

Previously known as uglify-js-brunch.

Usage

Install the plugin via npm with npm install --save-dev terser-brunch.

To specify Terser options, use config.plugins.terser object, for example:

module.exports = {
  // ...
  plugins: {
    terser: {
      mangle: false,
      compress: {
        global_defs: {
          DEBUG: false,
        },
      },
    },
  },
};

Joined files can be ignored and be passed-through, using ignored option:

module.exports = {
  plugins: {
    terser: {
      ignored: /dont-minimize\.js/,
    },
  },
};

License

The MIT License (MIT)

Package Sidebar

Install

npm i terser-brunch

Weekly Downloads

1,053

Version

4.1.0

License

MIT

Unpacked Size

3.92 kB

Total Files

4

Last publish

Collaborators

  • paulmillr