Open
Description
Description
I appreciate the warning from build.chunkSizeWarningLimit
but I want to fail my build in CI if the limit is exceeded… in fact, I might want to fail the build in CI if vite prints any warnings but at a minimum for this one.
Suggested solution
Have a flag to fail on warnings, a flag to fail on chunk size warning limit exceeded, or a separate build option to set a threshold/error limit on chunk size.
I think this flag could be enabled automatically whenever the CI
env var is set but that might start to fail builds unexpectedly so an opt-in approach may be best for now.
Alternative
Use separate solutions like bundlesize
.
Additional context
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.