angular / angular-cli

CLI tool for Angular
https://cli.angular.io
MIT License
26.77k stars 11.97k forks source link

--stats-json to allow giving stats to both server and browser, separately #28185

Open tsteuwer-accesso opened 3 months ago

tsteuwer-accesso commented 3 months ago

Command

build

Description

It would be a lot simpler to debug your stats json if we had a separate server and browser stats. As it is right now, everything is bundled together and is a huge pain trying to figure things out. You have to manually look at what the cli output said was for server and what was for browser, then go through the json and manually separate things. This can take a long time. And then, when you find one thing, you have to build again, just to start the process over to see if you made improvements.

Describe the solution you'd like

I would like a stats.browser.json and a stats.server.json so I can independently figure out what's being included in the bundle for the server versus the browser.

Describe alternatives you've considered

There are none that I'm aware of.

koenig-dominik commented 2 months ago

I would actually go a step further and also separate the initial chunk files

aparzi commented 3 weeks ago

Hi @alan-agius4, I would like to take care of this issue. How should it be implemented? I mean, is there any documentation regarding this task to follow?