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/webpack-bundle-analyzer#614
I might be missing something here, but I don't think this requires
BundleAnalyzerPluginat all, at least in recent versions of webpack. It looked to me like the output you get fromgenerateStatsFile: trueis the same as you get from running webpack with the--jsonflag.Also, I believe when using the config described in the README, your job will actually hang forever, as
BundleAnalyzerPluginwithoutanalyzerMode: "disabled"will start an HTTP server that won't exit without user interaction. See:webpack/webpack-bundle-analyzer#614