Socket
Socket
Sign inDemoInstall

optimize-js-plugin

Package Overview
Dependencies
2
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
3.9K
increased by30.63%
Maintainers
1
Install size
2.70 MB
Created
Weekly downloads
 

Readme

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

FAQs

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc