rollup-plugin-babili

v3.1.1
Simple rollup plugin for minifying code using Babili.
rollup rollup-plugin babili minify

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.

npm i rollup-plugin-babili

Metadata

  • MIT
  • Whatever
  • Comandeer
  • released 8/12/2017

Downloads