From e1aeb653d656b3c3be05f06cac212f435cec07c3 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期五, 25 七月 2025 15:55:36 +0800 Subject: [PATCH] Merge branch 'dev-3.4.2.5' of http://120.26.58.240:8888/r/12333GovernmentWeb into dev-3.4.2.5 --- vite.config.ts | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 1b96ef9..8b78943 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,6 +2,7 @@ import { warpperEnv } from './build'; import { getPluginsList } from './build/plugins'; import { UserConfigExport, ConfigEnv, loadEnv, AliasOptions } from 'vite'; +import dayjs from 'dayjs'; export const projRoot = resolve(__dirname, '..', '..'); export const pkgRoot = resolve(projRoot, 'packages'); @@ -43,6 +44,7 @@ VITE_PROXY_DOMAIN, VITE_PROXY_DOMAIN_REAL, VITE_COMPRESSION, + VITE_AppType, } = warpperEnv(loadEnv(mode, root)); return { @@ -90,12 +92,14 @@ } : {}, }, - plugins: getPluginsList(command, { VITE_LEGACY, VITE_COMPRESSION }), + plugins: getPluginsList(command, { VITE_LEGACY, VITE_COMPRESSION, VITE_AppType }), define: { __INTLIFY_PROD_DEVTOOLS__: false, }, build: { - outDir: `dist/dist-12333Governmentback-${mode}`, + outDir: `dist/${dayjs().format( + 'YYYY-MM-DD' + )}/dist-12333Governmentback-${VITE_AppType}-${mode}-${dayjs().format('YYYYMMDD')}`, }, optimizeDeps: { include: [ -- Gitblit v1.9.1