rollup-terser
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Rollup terser plugin

Rollup plugin to minify generated bundle. Uses terser under the hood.

Version license node Downloads dependency Size

Install

yarn add -D rollup-terser
# Or with npm:
npm i -D rollup-terser

Usage

import { rollup } from "rollup";
import { terser } from "rollup-terser";

rollup({
  input: "main.js",
  plugins: [terser(options?: MinifyOptions)],
});

Options

This plugin takes a configuration object for the Terser MinifyOptions.

Tests

Code origin: rollup-plugin-terser

License

MIT @Haikel Fazzani

Package Sidebar

Install

npm i rollup-terser

Weekly Downloads

58

Version

1.0.3

License

MIT

Unpacked Size

4.96 kB

Total Files

6

Last publish

Collaborators

  • haikel