babel-minify-webpack-plugin-marcello

0.1.0 • Public • Published

babili-webpack-plugin

This is a webpack plugin for Babili.

Babili - A babel based minifier - https://github.com/babel/babili

NOTE:

This might NOT be the best way to use babili. You can also use it with babel-loader for webpack (include babili in list of presets) and should be faster than using this. Further info - #8.

Build Status npm version

Install

npm install babili-webpack-plugin --save-dev

Usage

// webpack.config.js
const BabiliPlugin = require("babili-webpack-plugin");
module.exports = {
  entry: //...,
  output: //...,
  plugins: [
    new BabiliPlugin(options)
  ]
}

Options

  • test: JS file extension regex. Default: /\.js($|\?)/i
  • comments: Preserve Comments. Default: /@preserve|@license/. falsy value to remove all comments. Accepts function, object with property test (regex), and values.
  • sourceMap: Default: uses webpackConfig.devtool. Set this to override that.

LICENSE

MIT

https://boopathi.mit-license.org

Dependencies (2)

Dev Dependencies (9)

Package Sidebar

Install

npm i babel-minify-webpack-plugin-marcello

Weekly Downloads

3

Version

0.1.0

License

MIT

Last publish

Collaborators

  • marcello