From 87eb6088e5e81fa9d822ba852a1b3db1d10ccc78 Mon Sep 17 00:00:00 2001 From: Dreamacro <8615343+Dreamacro@users.noreply.github.com> Date: Sun, 26 Sep 2021 16:33:08 +0800 Subject: [PATCH] Chore: speed up build --- vite.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index f80a21d..c7749bf 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,7 +6,7 @@ import tsConfigPath from 'vite-tsconfig-paths' export default defineConfig({ plugins: [ - react(), + react({ babel: { compact: false } }), tsConfigPath(), windiCSS(), VitePWA({ @@ -31,4 +31,5 @@ export default defineConfig({ }, }, }, + build: { reportCompressedSize: false }, })