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.jsmoduleexports = presets:
Then it will compress JS code when you run poi build
.
It accepts the same options as which in babel-minify-webpack-plugin:
babelMinifyOptions overrides
License
MIT © EGOIST