smooth-code / bundle-analyzer

Keep your webpack bundle optimized over time 📦✨
https://www.bundle-analyzer.com
GNU General Public License v3.0
96 stars 4 forks source link

Does bundle-analyzer support multiple configurations #26

Open nerrad opened 4 years ago

nerrad commented 4 years ago

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?

dominics commented 4 years ago

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)

gregberge commented 4 years ago

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