Skip to content

Webpack plugin to optimize a JavaScript file for faster initial load by wrapping eagerly-invoked functions.

License

Notifications You must be signed in to change notification settings

vigneshshanmugam/optimize-js-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Webpack plugin to optimize a JavaScript file for faster initial load by wrapping eagerly-invoked functions.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published