github/webpack-bundlesize-compare-action

Not sure this requires BundleAnalyzerPlugin

dleavitt opened this issue · 0 comments

I might be missing something here, but I don't think this requires BundleAnalyzerPlugin at all, at least in recent versions of webpack. It looked to me like the output you get from generateStatsFile: true is the same as you get from running webpack with the --json flag.

Also, I believe when using the config described in the README, your job will actually hang forever, as BundleAnalyzerPlugin without analyzerMode: "disabled" will start an HTTP server that won't exit without user interaction. See:

webpack-contrib/webpack-bundle-analyzer#614