-
Hi, I have a PR to add size-limit to vanJS. Van has a custom build & uses terser. Is it possible configure size-limit to use build tools such as Right now, I think we can run the custom build then run size-limit on the built js file. |
Beta Was this translation helpful? Give feedback.
Answered by
ai
Oct 31, 2023
Replies: 1 comment
-
Yes, just use {
"scripts": {
"build": "anything",
"test": "npm build && size-limit"
},
"size-limit": [
{
"path": "dist/*.js",
}
]
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
btakita
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, just use
@size-limit/file
and run Size Limit on files after your own build script. Something like: