fix web打包staging环境 mode设置为none

This commit is contained in:
wkj 2024-04-30 16:47:44 +08:00
parent c419f77274
commit c1063a173b
1 changed files with 2 additions and 2 deletions

View File

@ -228,9 +228,9 @@ module.exports = function (webpackEnv) {
target: ['browserslist'],
// Webpack noise constrained to errors and warnings
stats: 'errors-warnings',
mode: isEnvProduction
mode: isEnvStaging ? 'none' : (isEnvProduction
? 'production'
: isEnvDevelopment && 'development',
: isEnvDevelopment && 'development'),
// Stop compilation early in production
bail: isEnvProduction,
devtool: isEnvProduction