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.jsconst BabiliPlugin = ;moduleexports = entry: //..., output: //..., plugins: 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