Skip to content

@lopatnov/rollup-plugin-uglify

Latest
Compare
Choose a tag to compare
@lopatnov lopatnov released this 06 Aug 04:37
· 30 commits to master since this release

@lopatnov/rollup-plugin-uglify

NPM version
License
Twitter

A rollup plugin to minify javascript

Requirements

Install rollup and terser first.

npm install rollup --save-dev
npm install terser --save-dev

Install

https://nodei.co/npm/@lopatnov/rollup-plugin-uglify.png?downloads=true&downloadRank=true&stars=true

npm install @lopatnov/rollup-plugin-uglify --save-dev

Import package to the project

TypeScript

import uglify from "@lopatnov/rollup-plugin-uglify";

JavaScript

var uglify = require("@lopatnov/rollup-plugin-uglify");

How to use plugin

File rollup.config.ts

export default {
  //...
  plugins: [
    //...
    uglify()
  ]
};

Changelog

Version Changes
2.1.0 Added behavior for async terser result

Rights and Agreements

License Apache-2.0

Copyright 2019 Oleksandr Lopatnov