rollup-plugin-babili
v3.1.1 rollup rollup-plugin babili minify
rollup-plugin-babili
Allows using Babili minifier with Rollup.
Installation
npm install rollup-plugin-babili [--save-dev]
Usage
import { rollup } from 'rollup';
import babili from 'rollup-plugin-babili';
rollup( {
entry: './src/index.js',
plugins: [
babili( {
// Options for Babili.
} )
]
} );
For the list of options, check Babili Preset's docs.
There are additional options:
comments
(default:true
): indicates if comments should be preserved in sourcebanner
(default:undefined
): the comment which should be prepended to the transformed bundlesourceMap
(default:true
): indicates if sourcemap should be generated
License
See LICENSE file for details.