poi-preset-uglify-es
v0.1.1
Published
Use uglify-es instead of uglify-js
Downloads
2
Readme
poi-preset-uglify-es
Use uglify-es to minimize JavaScript.
Install
yarn add poi-preset-uglify-es --dev
Usage
This preset will replace UglifyjsPlugin with the latest uglifyjs-webpack-plugin for you:
// poi.config.js
module.exports = {
presets: [
require('poi-preset-uglify-es')()
]
}
Then it will compress JS code when you run poi build
.
It accepts the same options as which in uglifyjs-webpack-plugin:
require('poi-preset-uglify-es')({ parallel: true, uglifyOptions: { warnings: false }})
License
MIT © EGOIST