web-infra-dev / rsdoctor

A one-stop build analyzer for Rspack and webpack.
https://rsdoctor.dev/
MIT License
413 stars 32 forks source link

[Feature]: Generate summarized single-file data with `brief:writeDataJson` #495

Open kwonoj opened 3 weeks ago

kwonoj commented 3 weeks ago

What problem does this feature solve?

I may misunderstand, but brief mode's writeDataJson seems to like emit full analytics to generate the output html. For the processing in the remote system (CI, for example) hope if there's a simplified single json file instead.

What does the proposed API look like?

Mainly I'm intererested in few metrics like

if it's possible, brief mode have an option to accept which information to be included in summary but can't say for sure what type of values can be easily picked.

easy1090 commented 2 weeks ago

Thanks~ Good idea!I will add this feature as soon as possible this month.