Browse Source

chore(env) remove no need code

master
wangxiang 2 years ago
parent
commit
95e121eae2
  1. 12
      build/utils.ts

12
build/utils.ts

@ -47,12 +47,12 @@ export function wrapperEnv(envConf: Recordable): ViteEnv {
} }
// 返回读取配置并把值设置到node进程环境变量上 // 返回读取配置并把值设置到node进程环境变量上
ret[envName] = realName; // ret[envName] = realName;
if (typeof realName === 'string') { // if (typeof realName === 'string') {
process.env[envName] = realName; // process.env[envName] = realName;
} else if (typeof realName === 'object') { // } else if (typeof realName === 'object') {
process.env[envName] = JSON.stringify(realName); // process.env[envName] = JSON.stringify(realName);
} // }
} }
return ret; return ret;
} }

Loading…
Cancel
Save