poi-preset-babel-minify

1.0.3 • Public • Published

poi-preset-babel-minify

Use babel-minify to minimize JavaScript.

Install

yarn add poi-preset-babel-minify --dev

Usage

This preset will replace UglifyjsPlugin with babel-minify-webpack-plugin for you:

// poi.config.js
module.exports = {
  presets: [
    require('poi-preset-babel-minify')()
  ]
}

Then it will compress JS code when you run poi build.

It accepts the same options as which in babel-minify-webpack-plugin:

require('poi-preset-babel-minify')(babelMinifyOptions, overrides)

License

MIT © EGOIST

Readme

Keywords

none

Package Sidebar

Install

npm i poi-preset-babel-minify

Weekly Downloads

27

Version

1.0.3

License

MIT

Last publish

Collaborators

  • rem