[Feature]: Generate summarized single-file data with brief:writeDataJson
#495
Open
Description
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
- build size : total, js, assets,
Record<filename, {type, size}>
- build time: span for the event
{ eventType, started, completed, parent }
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.