Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

webpack-uglify-js-plugin

pingyuanChen2.7kISC1.1.9

Incremental Uglify JS for webpack

webpack, plugin, uglifyjs

readme

webpack-uglify-js-plugin

Incremental Uglify JS for webpack

Install

To install the latest release:

npm install webpack-uglify-js-plugin

Usage

Once webpack-uglify-js-plugin is installed in your project, you can use like this:

var webpackUglifyJsPlugin = require('webpack-uglify-js-plugin');

new webpackUglifyJsPlugin({
  cacheFolder: path.resolve(__dirname, 'public/cached_uglify/'),
  debug: true,
  minimize: true,
  sourceMap: false,
  output: {
    comments: false
  },
  compressor: {
    warnings: false
  }
})