Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store result to file for external tool consumption #1

Open
codinronan opened this issue Nov 8, 2018 · 2 comments
Open

Store result to file for external tool consumption #1

codinronan opened this issue Nov 8, 2018 · 2 comments

Comments

@codinronan
Copy link

codinronan commented Nov 8, 2018

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?

@lucleray
Copy link
Owner

lucleray commented Nov 9, 2018

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.

@SilentImp
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants