Add bundle analyzer plugin

This commit is contained in:
Ramon Wenger 2021-12-21 12:25:57 +01:00
parent 31f3145cbd
commit 93938baa34
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ const path = require('path');
const baseWebpackConfig = require('./webpack.base.conf'); const baseWebpackConfig = require('./webpack.base.conf');
const CopyPlugin = require('copy-webpack-plugin'); const CopyPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const portfinder = require('portfinder'); const portfinder = require('portfinder');
const {merge} = require('webpack-merge'); const {merge} = require('webpack-merge');
@ -65,6 +66,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
}, },
], ],
}), }),
new BundleAnalyzerPlugin(),
], ],
}); });