From 3203a9a45999b343c2633553df03341e46cc6d96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E9=BE=99?= Date: Thu, 19 May 2022 15:40:02 +0800 Subject: [PATCH] chore: update vite.config.js --- vite.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vite.config.js b/vite.config.js index 8ee6eb1..09b7424 100644 --- a/vite.config.js +++ b/vite.config.js @@ -38,8 +38,8 @@ export default defineConfig(({ command, mode }) => { build: { target: 'es2015', outDir: OUTPUT_DIR, - brotliSize: false, - chunkSizeWarningLimit: 2000, + reportCompressedSize: false, // 启用/禁用 gzip 压缩大小报告 + chunkSizeWarningLimit: 1024, // chunk 大小警告的限制(单位kb) }, } })