babel-minify-webpack-plugin-marcello
v0.1.0
Published
Babel Minify Plugin for Webpack
Downloads
6
Maintainers
Readme
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.
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