Skip to content
New issue

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

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

Already on GitHub? # to your account

Allow customize error message #350

Closed
dartess opened this issue Jan 31, 2024 · 1 comment · Fixed by #376
Closed

Allow customize error message #350

dartess opened this issue Jan 31, 2024 · 1 comment · Fixed by #376

Comments

@dartess
Copy link
Contributor

dartess commented Jan 31, 2024

Now I get standard message like Try to reduce size or increase limit at .size-limit.json.

It would be great to be able to change this message, including setting a different message for different groups of files, like this:

  "size-limit": [
    {
      "path": "main.js",
      "limit": "500 ms",
      "message": "Call Hugo"
    },
    {
      "path": "page-index-*.js",
      "limit": "100 ms",
      "message": "Call Ghostbusters"
    },
  ]
@ai
Copy link
Owner

ai commented Jan 31, 2024

Please send PR

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

Successfully merging a pull request may close this issue.

2 participants