@lopatnov/rollup-plugin-uglify
A rollup plugin to minify javascript
Requirements
Install rollup and terser first.
npm install rollup --save-dev
npm install terser --save-dev
Install
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