Add bundle analyzer plugin
This commit is contained in:
parent
31f3145cbd
commit
93938baa34
|
|
@ -6,6 +6,7 @@ const path = require('path');
|
|||
const baseWebpackConfig = require('./webpack.base.conf');
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||
const portfinder = require('portfinder');
|
||||
const {merge} = require('webpack-merge');
|
||||
|
||||
|
|
@ -65,6 +66,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
|
|||
},
|
||||
],
|
||||
}),
|
||||
new BundleAnalyzerPlugin(),
|
||||
],
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue