bundle-analyzer icon indicating copy to clipboard operation
bundle-analyzer copied to clipboard

Does bundle-analyzer support multiple configurations

Open nerrad opened this issue 6 years ago • 2 comments

It appears that bundle-analyzer will correctly gather stats from a webpack config file that exports multiple configurations. However each configuration goes to a specific record in bundle-analyzer. As an example if I have a webpack config file with 4 configurations, there will be 4 builds recorded in bundle-analyzer for that single pull/commit hash.

My question is, will this result in multiple checks (one for each build) showing up in the github pull checks ui, or does it just show the latest build to be received?

nerrad avatar Dec 14 '19 01:12 nerrad

It appears that only a single check makes it through to the UI. It'd be nice to be able to provide a key in .bundle-analyzerrc or environment variables to make the check names unique; that way the monorepo use case would be a bit better supported.

(I'm using bundle-analyzer on a repo which has ~12 separate invocations of webpack per commit, mostly because of things like serverless-webpack but there is also more than one frontend codebase in the repo, so even ignoring that I'd need some way to split the checks)

dominics avatar Jun 15 '20 06:06 dominics

Hello, I actually don't have time to maintain this project, I am looking for maintainers.

gregberge avatar Jul 27 '20 14:07 gregberge