chore: remove bundle analyzer

This commit is contained in:
endiliey 2018-08-11 02:50:11 +08:00
parent 8a5807418d
commit 80204b5617

View file

@ -1,7 +1,6 @@
const path = require('path'); const path = require('path');
const staticSiteGenerator = require('static-site-generator-webpack-plugin'); const staticSiteGenerator = require('static-site-generator-webpack-plugin');
const webpackNiceLog = require('webpack-nicelog'); const webpackNiceLog = require('webpack-nicelog');
const bundleAnalyzer = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const createBaseConfig = require('./base'); const createBaseConfig = require('./base');
module.exports = function createProdConfig(props) { module.exports = function createProdConfig(props) {
@ -31,8 +30,5 @@ module.exports = function createProdConfig(props) {
// show compilation progress bar and build time // show compilation progress bar and build time
config.plugin('niceLog').use(webpackNiceLog, [{name: 'Production'}]); config.plugin('niceLog').use(webpackNiceLog, [{name: 'Production'}]);
// Webpack Bundle Analyzer to check which causes huge bundle size
config.plugin('bundleAnalyzer').use(bundleAnalyzer);
return config; return config;
}; };