DEPRECATED, see rollup-plugin-terser instead.
Rollup plugin to minify generated bundle.
npm i rollup-plugin-uglify-es -D
import { rollup } from 'rollup';
import uglify from 'rollup-plugin-uglify-es';
rollup({
entry: 'main.js',
plugins: [
uglify()
]
});
uglify(options)
options
– default: {}
, type: object
. UglifyJS API options
Thanks to TrySound for rollup-plugin-uglify
MIT © Ezekiel Chentnik