v1.0.2 - Github actions configuration updates

This commit is contained in:
LINING-PC\lining
2025-07-02 13:32:38 +08:00
parent d93fbd23da
commit 71d503686c
3 changed files with 4 additions and 5 deletions
+3 -3
View File
@@ -2,10 +2,10 @@ import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vite.dev/config/
export default defineConfig({
export default defineConfig(({ command }) => ({
plugins: [vue()],
// GitHub Pages 部署时的 base 路径
base: process.env.NODE_ENV === 'production' ? '/jordium-gantt-vue3/' : '/',
base: command === 'build' ? '/jordium-gantt-vue3/' : '/',
// 开发服务器配置
root: 'demo',
// 构建配置
@@ -19,4 +19,4 @@ export default defineConfig({
'@': '../src',
},
},
})
}))