From 2a8c9a116fc114e37ce743288ff3422571c529b5 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期日, 19 十月 2025 17:25:13 +0800
Subject: [PATCH] feat: 1.2.0.1
---
vite.config.ts | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/vite.config.ts b/vite.config.ts
index a3c29ca..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');
@@ -93,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