Skip to content

Production chunks should not be larger than 500kb #248

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

Open
2 tasks
benel opened this issue Jan 10, 2025 · 0 comments
Open
2 tasks

Production chunks should not be larger than 500kb #248

benel opened this issue Jan 10, 2025 · 0 comments

Comments

@benel
Copy link
Member

benel commented Jan 10, 2025

npm run build

> [email protected] build
> vite build

vite v5.4.11 building for production...
[plugin:vite-plugin-eslint] [plugin vite-plugin-eslint] LintOnStart is turned on, and it will check for all matching files.
✓ 2793 modules transformed.
build/index.html                          0.44 kB │ gzip:   0.29 kB
build/assets/notification-C7-9PN0h.svg    3.25 kB │ gzip:   0.89 kB
build/assets/index-C9fP7BzK.css         251.55 kB │ gzip:  35.99 kB
build/assets/index-CV5TD35L.js          605.60 kB │ gzip: 189.19 kB

(!) Some chunks are larger than 500 kB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
✓ built in 7.82s

image
  • Import only parse from YAML
  • Fix react-bootstrap and bootstrap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant