rollup-plugin-minify-es [![Travis Build Status][travis-img]][travis]
Rollup plugin to minify generated bundle.
Install
npm i rollup-plugin-minify-es -D
Usage
;; ;
Options
options
– default: {}
, type: object
. UglifyJS API options
minifier
– default: require('minify-js').minify
, type: function
. Module to use as a minifier. You can use other versions (or forks) of UglifyJS instead default one.
;;; ;
Examples
Comments
If you'd like to preserve comments (for licensing for example), then you can specify a function to do this like so:
;
See UglifyJS documentation for further reference.
License
MIT