Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.14 KB

Readme.md

File metadata and controls

37 lines (24 loc) · 1.14 KB

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