rollup-plugin-babel-minify
Simple rollup plugin for minifying code using babel-minify.
Last updated 3 months ago by comandeer .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install rollup-plugin-babel-minify 
SYNC missed versions from official npm registry.

rollup-plugin-babel-minify

Build Status codecov Dependency Status devDependencies Status npm

Allows using babel-minify with Rollup.

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:

  • comments (default: true): indicates if comments should be preserved in source;
  • banner (default: undefined): the comment which should be prepended to the transformed bundle;
  • bannerNewLine (since 4.0.0, default: false): indicates if the banner comment should be followed by a new line;
  • sourceMap (default: true): indicates if sourcemap should be generated;
  • plugins (since 6.2.0): indicates which Babel plugins should be loaded alongside minify preset; two plugins are loaded by default:

Check API docs for more detailed description.

License

See LICENSE file for details.

Current Tags

  • 9.1.1                                ...           latest (3 months ago)

13 Versions

  • 9.1.1                                ...           3 months ago
  • 9.1.0                                ...           4 months ago
  • 9.0.0                                ...           7 months ago
  • 8.0.0                                ...           a year ago
  • 7.0.0                                ...           a year ago
  • 6.2.0                                ...           a year ago
  • 6.1.1                                ...           a year ago
  • 6.1.0                                ...           a year ago
  • 6.0.0                                ...           a year ago
  • 5.0.0                                ...           2 years ago
  • 4.0.0                                ...           2 years ago
  • 3.1.2                                ...           2 years ago
  • 0.0.0                                ...           2 years ago
Maintainers (2)
Downloads
Today 0
This Week 2
This Month 91
Last Day 1
Last Week 5
Last Month 200
Dev Dependencies (17)

Copyright 2014 - 2016 © taobao.org |