From a4bb5626dcf18a1893792eeeca75e9139c744ad0 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期一, 13 十月 2025 16:30:45 +0800 Subject: [PATCH] Merge branch 'dev-1.1.2' of http://120.26.58.240:8888/r/flexJobAdmin into dev-1.1.2 --- vite.config.ts | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index e6d3e8c..9ce738e 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'); @@ -56,7 +57,9 @@ // 鏈嶅姟绔覆鏌� server: { // 鏄惁寮�鍚� https - // https: false, + // https: { + + // }, // 绔彛鍙� port: VITE_PORT, host: '0.0.0.0', @@ -91,12 +94,22 @@ } : {}, }, + css: { + preprocessorOptions: { + scss: { api: 'modern-compiler' }, + }, + }, plugins: getPluginsList(command, { VITE_LEGACY, VITE_COMPRESSION, VITE_AppType }), define: { __INTLIFY_PROD_DEVTOOLS__: false, }, build: { - outDir: `dist/dist-yexingback-${VITE_AppType}-${mode}`, + outDir: + mode === 'staging' + ? `dist/dist-flexJobAdmin-${VITE_AppType}-${mode}` + : `dist/${dayjs().format( + 'YYYY-MM-DD' + )}/dist-flexJobAdmin-${VITE_AppType}-${mode}-${dayjs().format('YYYYMMDD')}`, }, optimizeDeps: { include: [ -- Gitblit v1.9.1