Browse Source

fix: 注释build/util文件中的代码,修复热更新无效的问题 (#2551)

Co-authored-by: huangwentao <huangwentao@dianchu.com>
pull/2555/head
Vinton 4 years ago
committed by GitHub
parent
commit
de4eaddffd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      build/utils.ts

10
build/utils.ts

@ -36,11 +36,11 @@ export function wrapperEnv(envConf: Recordable): ViteEnv {
}
}
ret[envName] = realName;
if (typeof realName === 'string') {
process.env[envName] = realName;
} else if (typeof realName === 'object') {
process.env[envName] = JSON.stringify(realName);
}
// if (typeof realName === 'string') {
// process.env[envName] = realName;
// } else if (typeof realName === 'object') {
// process.env[envName] = JSON.stringify(realName);
// }
}
return ret;
}

Loading…
Cancel
Save