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:
parent
5bf84cfefd
commit
ccf0df543e
@ -118,7 +118,8 @@ export default defineConfig(({ mode, command }) => {
|
|||||||
build: {
|
build: {
|
||||||
outDir: 'dist',
|
outDir: 'dist',
|
||||||
assetsDir: 'assets',
|
assetsDir: 'assets',
|
||||||
sourcemap: false
|
sourcemap: false,
|
||||||
|
chunkSizeWarningLimit: 2000
|
||||||
},
|
},
|
||||||
define: {
|
define: {
|
||||||
// 确保环境变量在构建时可用
|
// 确保环境变量在构建时可用
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user