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.
This commit is contained in:
jingrow 2025-11-22 17:33:29 +08:00
parent 5bf84cfefd
commit ccf0df543e

View File

@ -118,7 +118,8 @@ export default defineConfig(({ mode, command }) => {
build: {
outDir: 'dist',
assetsDir: 'assets',
sourcemap: false
sourcemap: false,
chunkSizeWarningLimit: 2000
},
define: {
// 确保环境变量在构建时可用