From 47e2c5d8139d11efc47bd01879dfd74637fd0593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= <37316281+yanhao98@users.noreply.github.com> Date: Thu, 2 Jan 2025 23:09:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20Vite=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=EF=BC=8C=E6=B7=BB=E5=8A=A0=E6=89=8B=E5=8A=A8=E5=88=86?= =?UTF-8?q?=E5=9D=97=E6=B3=A8=E9=87=8A=E4=BB=A5=E4=BC=98=E5=8C=96=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 504d088..84088fd 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -38,6 +38,16 @@ export default defineConfig(({ mode, command }) => { // output: env.VITE_SPLIT_CHUNKS === 'true' ? (await import('utils4u/rollup')).createSplitChunkOutput() : undefined, output: { minifyInternalExports: false, + // manualChunks: { + // 'vendor/utils4u': ['utils4u', 'utils4u/vue-use', 'utils4u/primevue'], + // 'vendor/vue': ['vue'], + // 'vendor/primevue': ['primevue'], + // 'vendor/faker-js': ['@faker-js/faker'], + // 'vendor/mockjs': ['mockjs'], + // 'vendor/axios': ['axios', 'alova', '@alova/adapter-axios'], + // // 'vendor/nprogress': ['nprogress'], + // // 'vendor/formkit': ['@formkit/auto-animate'], + // }, }, }, },