From 8ddc8f3bb5fd4b2a58724b2bf8dfe038f350b27d Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期五, 25 七月 2025 15:55:00 +0800 Subject: [PATCH] fix: 奖励金审核 --- 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