Rollup plugin that minifies the generated ES module bundle using uglify-es, producing a separate minified file with source maps. The current stable version is 1.1.1. This plugin targets ES6+ syntax and uses uglify-es (a fork of UglifyJS2 with harmony support), unlike rollup-plugin-uglify which uses the classic UglifyJS. It allows custom minifier functions and passes through all UglifyJS API options. Note that uglify-es is deprecated in favor of terser, and this plugin may not receive updates.
npm install rollup-plugin-minify-esVerified import paths — ran on the pinned version, not inferred.
Basic Rollup configuration using rollup-plugin-minify-es to minify an ES module bundle.
Consider using rollup-plugin-terser instead.
Use Rollup's built-in terser plugin or rollup-plugin-terser for better caching.
Switch to a terser-based plugin or pass a custom minifier function.
Run 'npm install uglify-es' or use a custom minifier via the 'minifier' option.
Use 'import minify from 'rollup-plugin-minify-es'' instead of '{ minify }'.Replace 'entry' with 'input' in the Rollup configuration.