poi-preset-babili
v1.0.1
Published
Use [babili](https://github.com/babel/babili) to minimize JavaScript.
Downloads
2
Readme
poi-preset-babili
Use babili to minimize JavaScript.
Install
yarn add poi-preset-babili --dev
Usage
This preset will replace UglifyjsPlugin with babili-webpack-plugin for you:
// poi.config.js
module.exports = {
presets: [
require('poi-preset-babili')()
]
}
Then it will compress JS code when you run poi build
.
It accepts the same options as which in babili-webpack-plugin:
require('poi-preset-babili')(babiliOptions, overrides)
License
MIT © EGOIST