5.0/51
terser-brunch
npm i terser-brunch

terser-brunch

A javascript minifier for brunch files.

by brunch

4.1.0 (see all)License:MITTypeScript:Not Found
npm i terser-brunch
Readme

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)

Downloads/wk

1.4K

GitHub Stars

149

LAST COMMIT

1yr ago

MAINTAINERS

1

CONTRIBUTORS

11

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
4.1.0
latest
1yr ago
No alternatives found
No tutorials found
Add a tutorial