fix staging环境下 除了mode其他配置跟production一致

This commit is contained in:
wkj 2024-05-06 10:34:16 +08:00
parent ca8b03103f
commit 1ca94a0c14
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ module.exports = function (webpackEnv) {
// staging 把mode改为none其他跟production一样
const isEnvStaging = webpackEnv === 'staging';
const isEnvDevelopment = webpackEnv === 'development';
const isEnvProduction = webpackEnv === 'production';
const isEnvProduction = webpackEnv === 'production' || isEnvStaging;
// Variable used for enabling profiling in Production
// passed into alias object. Uses a flag if passed into the build command