fix web打包staging环境 mode设置为none
This commit is contained in:
parent
c419f77274
commit
c1063a173b
|
|
@ -228,9 +228,9 @@ module.exports = function (webpackEnv) {
|
||||||
target: ['browserslist'],
|
target: ['browserslist'],
|
||||||
// Webpack noise constrained to errors and warnings
|
// Webpack noise constrained to errors and warnings
|
||||||
stats: 'errors-warnings',
|
stats: 'errors-warnings',
|
||||||
mode: isEnvProduction
|
mode: isEnvStaging ? 'none' : (isEnvProduction
|
||||||
? 'production'
|
? 'production'
|
||||||
: isEnvDevelopment && 'development',
|
: isEnvDevelopment && 'development'),
|
||||||
// Stop compilation early in production
|
// Stop compilation early in production
|
||||||
bail: isEnvProduction,
|
bail: isEnvProduction,
|
||||||
devtool: isEnvProduction
|
devtool: isEnvProduction
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue