next-size
next-size copied to clipboard
Store result to file for external tool consumption
Description
I love this! Have wanted something to do this for awhile but never had the time..
What do you think about spitting out the results to a JSON file alongside the build, configurable via the nextConfig
? The idea being for an external tool to be able to read this and track the size changes over time; also for things like tests to constrain changes in size across builds.
It wouldn't be hard to do - thoughts?
I think it's a good idea 🙂
How would you track the size changes ? I'd like to understand the use case more clearly before adding the feature.
Same request. For example, for GitLab we may store value in the report artefact and then in PR you will see how exactly size has changed.
Example: https://gitlab.com/silentimp/metrics-test/merge_requests/3

I mean this: