Skip to content

Instantly share code, notes, and snippets.

@gauravtiwari
Created July 2, 2016 16:55
Show Gist options
  • Save gauravtiwari/c87154489f7a7080f7a30535b9bbabf7 to your computer and use it in GitHub Desktop.
Save gauravtiwari/c87154489f7a7080f7a30535b9bbabf7 to your computer and use it in GitHub Desktop.
// 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