chore: 调整环境配置

This commit is contained in:
wangxuefeng
2025-03-03 18:39:15 +08:00
parent 7c6a86edf6
commit 09ff94c188
14 changed files with 30 additions and 23 deletions

View File

@@ -24,6 +24,7 @@ const __APP_INFO__ = {
// https://vitejs.dev/config/
export default ({ command, mode }: ConfigEnv): UserConfig => {
console.log('mode', mode);
// 环境变量
const env = loadEnv(mode, process.cwd(), ['VITE_', 'VTJ_', 'SY_']);
const isDev = command === 'serve';
@@ -119,7 +120,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
},
},
build: {
outDir: resolve(process.cwd(), '../../dist/platform'), // 输出到根目录/designer
// outDir: resolve(process.cwd(), '../../dist/platform'), // 输出到根目录/designer
emptyOutDir: true,
terserOptions: {
compress: {