webamp/config/webpack.bundle-analyzer.js
Borewit aae9865786 Add webpack script/config to analyze bundle size.
Execute `npm run analyze` to open a size map of the production build in the browser.
2018-06-25 09:55:37 -07:00

12 lines
273 B
JavaScript

const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
.BundleAnalyzerPlugin;
const merge = require("webpack-merge");
const prod = require("./webpack.prod.js");
const config = merge(prod, {
plugins: [new BundleAnalyzerPlugin()]
});
module.exports = config;