From e80ed3b33e429d976fc790ff40ebd4180247825d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sat, 16 Nov 2024 13:47:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=87=E5=88=86=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- napcat.webui/vite.config.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/napcat.webui/vite.config.ts b/napcat.webui/vite.config.ts index 583be2bb..5517677e 100644 --- a/napcat.webui/vite.config.ts +++ b/napcat.webui/vite.config.ts @@ -16,4 +16,15 @@ export default defineConfig({ '/api': 'http://localhost:6099', }, }, -}); + build: { + rollupOptions: { + output: { + manualChunks(id) { + if (id.includes('node_modules')) { + return id.toString().split('node_modules/')[1].split('/')[0].toString(); + } + } + } + } + } +}); \ No newline at end of file