From eccc12599134c69493a9f43fd8890d9082c6cb6e Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sat, 14 Oct 2023 19:43:21 -0700 Subject: [PATCH] webpack: add bundle analyzer Signed-off-by: Varun Patil --- webpack.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webpack.js b/webpack.js index 36a032e1..abbff39c 100644 --- a/webpack.js +++ b/webpack.js @@ -68,4 +68,7 @@ webpackConfig.plugins.push( // Enable caching webpackConfig.cache = true; +// Bundle analyzer (npm i --no-save webpack-bundle-analyzer) +// webpackConfig.plugins.push(new (require('webpack-bundle-analyzer').BundleAnalyzerPlugin)()); + module.exports = webpackConfig;