optimize-js-plugin

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


Keywords
optimize, js, webpack, webpack-plugin, optimize-js
License
MIT
Install
npm install optimize-js-plugin@0.0.4

Documentation

optimize-js-plugin

Webpack plugin that uses optimize-js

downloads version

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
    })
  ]
}

Options

All options as mentioned here