optimize-js-plugin
v0.0.4
Published
webpack plugin to optimize initial JavaScript execution/parsing by wrapping eager functions
Downloads
13,803
Maintainers
Readme
optimize-js-plugin
Webpack plugin that uses optimize-js
Thanks to @nolanlawson for his awesome work.
Install
npm i --save-dev optimize-js-plugin
Usage
// webpack.config.js
const OptimizeJsPlugin = require("optimize-js-plugin");
module.exports = {
entry: //...,
output: //...,
plugins: [
new webpack.optimize.UglifyJsPlugin(options),
new OptimizeJsPlugin({
sourceMap: false
})
]
}
Example
To check the example, run
npm run example
Options
All options as mentioned here