From ccf0df543eaa14d00efa826c64a49e9785d94c8d Mon Sep 17 00:00:00 2001 From: jingrow Date: Sat, 22 Nov 2025 17:33:29 +0800 Subject: [PATCH] build: increase chunk size warning limit to 2000KB Set chunkSizeWarningLimit to 2000KB to suppress build warnings for large chunks. This is acceptable as some third-party libraries (e.g., naive-ui) inherently require larger bundle sizes. --- apps/jingrow/frontend/vite.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/jingrow/frontend/vite.config.ts b/apps/jingrow/frontend/vite.config.ts index 6617f82..479d3d8 100644 --- a/apps/jingrow/frontend/vite.config.ts +++ b/apps/jingrow/frontend/vite.config.ts @@ -118,7 +118,8 @@ export default defineConfig(({ mode, command }) => { build: { outDir: 'dist', assetsDir: 'assets', - sourcemap: false + sourcemap: false, + chunkSizeWarningLimit: 2000 }, define: { // 确保环境变量在构建时可用