optimize-js-plugin

webpack plugin to optimize initial JavaScript execution/parsing by wrapping eager functions

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
optimize-js-plugin
16190.0.48 years ago8 years agoMinified + gzip package size for optimize-js-plugin in KB

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