Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Initialize plugins for webpack
var config = require('./config.js');
var webpack = require('webpack');
// Define empty plugins array
config.plugins = [
new webpack.optimize.DedupePlugin(),
new webpack.optimize.UglifyJsPlugin({ /* can pass many options */ })
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.