poi-preset-babili

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i poi-preset-babili

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • rem