You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

optimize-js-plugin

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

optimize-js-plugin

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

0.0.4
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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

Keywords

optimize

FAQs

Package last updated on 23 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts