next-size icon indicating copy to clipboard operation
next-size copied to clipboard

Store result to file for external tool consumption

Open codinronan opened this issue 6 years ago • 2 comments

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?

codinronan avatar Nov 08 '18 18:11 codinronan

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.

lucleray avatar Nov 09 '18 14:11 lucleray

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

Screen Shot 2019-08-29 at 09 53 58

I mean this: Screen Shot 2019-08-27 at 23 07 41

SilentImp avatar Aug 29 '19 07:08 SilentImp