Implementing analyze script (#1197)

This commit is contained in:
Ryan Randall
2018-03-09 11:13:02 -05:00
committed by Kevin Barabash
parent 20b5a58451
commit 017eb7b91d
3 changed files with 549 additions and 63 deletions

13
webpack.analyze.js Normal file
View File

@@ -0,0 +1,13 @@
// @flow
const { targets, createConfig } = require('./webpack.common');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
// dev minify
const katexConfig = createConfig(targets.shift(), false, false);
katexConfig.plugins.push(new BundleAnalyzerPlugin());
module.exports = [
katexConfig,
];