Skip to content

Instantly share code, notes, and snippets.

@joshjung
Created November 14, 2017 12:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save joshjung/14e76572ec44121a2e4a7dbe52f03dcb to your computer and use it in GitHub Desktop.
let BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const prodBuild = require('./webpack.config.prod.js');
module.exports = new Promise(resolve => {
prodBuild.then(build => {
build.plugins.push(new BundleAnalyzerPlugin());
resolve(build);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment