From c1063a173b639d97a815e6e535d8a2eee37c95c2 Mon Sep 17 00:00:00 2001 From: wkj <278599135@.com> Date: Tue, 30 Apr 2024 16:47:44 +0800 Subject: [PATCH] =?UTF-8?q?fix=20web=E6=89=93=E5=8C=85staging=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=20mode=E8=AE=BE=E7=BD=AE=E4=B8=BAnone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/web/webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/web/webpack.config.js b/config/web/webpack.config.js index 92bcd42..612b489 100644 --- a/config/web/webpack.config.js +++ b/config/web/webpack.config.js @@ -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