Comandeer / rollup-plugin-babel-minify

Simple rollup plugin for minifying code using babel-preset-minify.
MIT License
48 stars 6 forks source link
babel-minify babili rollup rollup-plugin rollup-plugin-babel-minify rollup-plugin-babili

rollup-plugin-babel-minify

Build Status codecov Dependency Status devDependencies Status npm

Allows using babel-minify with Rollup.

☠️ Project is deprecated! ☠️

Version 10.0.0, released on 2020-03-14, will be the last version of the project, as babel-minify is basically dead. Please consider using rollup-plugin-terser instead.

Installation

npm install rollup-plugin-babel-minify [--save-dev]

Usage

import { rollup } from 'rollup';
import minify from 'rollup-plugin-babel-minify';

rollup( {
    input: './src/index.js',
    plugins: [
        minify( {
            // Options for babel-minify.
        } )
    ]
} );

For the list of options, check babel-minify preset's docs.

There are additional options:

Check API docs for more detailed description.

License

See LICENSE file for details.