diff --git a/webpack.common.js b/webpack.common.js index a2f6fee..cea3d10 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -3,6 +3,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const WebpackPwaManifest = require('webpack-pwa-manifest'); const { InjectManifest } = require('workbox-webpack-plugin'); +const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); module.exports = { entry: path.resolve(__dirname, 'src/scripts/index.js'), @@ -84,5 +85,9 @@ module.exports = { swSrc: path.resolve(__dirname, 'src/scripts/sw.js'), swDest: 'sw.js', }), + new BundleAnalyzerPlugin({ + analyzerMode: 'static', + openAnalyzer: false, + }), ], };