chore: 调整环境配置
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user