fix web打包staging环境 mode设置为none
This commit is contained in:
parent
c419f77274
commit
c1063a173b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue