I encountered this problem while trying to run "npm run build
"
(!) Some blocks are larger than 500 KiB after minification. Please consider: - Use dynamic import() to code split your application - Use build.rollupOptions.output.manualChunks to improve chunk splitting: https://rollupjs.org/guide/en/#outputmanualchunks - Adjust the chunk size limit for this warning via build.chunkSizeWarningLimit.
EDIT: Here is a workaround, just hide the warning
Add command in vite.config.js
Complete code
If you don't want to increase
chunkSizeWarningLimit
and are more concerned with solving the actual size problem, try the following solutions: