3.1.1 • Published 7 years ago

rollup-plugin-babili v3.1.1

Weekly downloads
62
License
MIT
Repository
github
Last release
7 years ago

rollup-plugin-babili

Build Status Dependency Status devDependencies Status npm

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 source
  • banner (default: undefined): the comment which should be prepended to the transformed bundle
  • sourceMap (default: true): indicates if sourcemap should be generated

License

See LICENSE file for details.