From a267429e5be256ed9bbcc26ea2f87935106edcd2 Mon Sep 17 00:00:00 2001 From: ClariS <1457715339@qq.com> Date: Mon, 28 Aug 2023 11:09:07 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20vite=20=E9=85=8D=E7=BD=AE=E9=80=89?= =?UTF-8?q?=E9=A1=B9=20chunkSizeWarningLimit=20=E6=B3=A8=E9=87=8A=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20(#122)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 7c6d296..9a1fb86 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -46,7 +46,7 @@ export default (configEnv: ConfigEnv): UserConfigExport => { } }, build: { - /** 消除打包大小超过 500kb 警告 */ + /** 单个 chunk 文件的大小超过 2048KB 时发出警告 */ chunkSizeWarningLimit: 2048, /** 禁用 gzip 压缩大小报告 */ reportCompressedSize: false,