Babel Minify Plugin for Webpack
npm install babel-minify-webpack-plugin-marcelloThis is a webpack plugin for Babili.
Babili - A babel based minifier - https://github.com/babel/babili
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.
 
``sh`
npm install babili-webpack-plugin --save-dev
`js`
// webpack.config.js
const BabiliPlugin = require("babili-webpack-plugin");
module.exports = {
entry: //...,
output: //...,
plugins: [
new BabiliPlugin(options)
]
}
+ test: JS file extension regex. Default: /\.js($|\?)/icomments
+ : 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.
+
MIT
https://boopathi.mit-license.org