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

Allow customize error message #350

Open
dartess opened this issue Jan 31, 2024 · 1 comment
Open

Allow customize error message #350

dartess opened this issue Jan 31, 2024 · 1 comment

Comments

@dartess
Copy link

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

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

2 participants