From 7039c7f1a1feacc5479cbe7b886f239dea3ef1e6 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 10 十一月 2025 14:05:08 +0800
Subject: [PATCH] Merge branch 'dev-1.3.0.1' of http://120.26.58.240:8888/r/flexJobMiniApp into dev-1.3.0.1
---
apps/cMiniApp/config/index.js | 30 ++++++++++++++++--------------
1 files changed, 16 insertions(+), 14 deletions(-)
diff --git a/apps/cMiniApp/config/index.js b/apps/cMiniApp/config/index.js
index 2b2a217..14ef20c 100644
--- a/apps/cMiniApp/config/index.js
+++ b/apps/cMiniApp/config/index.js
@@ -134,22 +134,24 @@
})
);
- chain.merge({
- plugin: {
- install: {
- plugin: require('terser-webpack-plugin'),
- args: [
- {
- terserOptions: {
- compress: true, // 榛樿浣跨敤terser鍘嬬缉
- keep_classnames: true, // 涓嶆敼鍙榗lass鍚嶇О
- keep_fnames: true, // 涓嶆敼鍙樺嚱鏁板悕绉�
+ if (process.env.NODE_ENV !== 'development') {
+ chain.merge({
+ plugin: {
+ install: {
+ plugin: require('terser-webpack-plugin'),
+ args: [
+ {
+ terserOptions: {
+ compress: true, // 榛樿浣跨敤terser鍘嬬缉
+ keep_classnames: true, // 涓嶆敼鍙榗lass鍚嶇О
+ keep_fnames: true, // 涓嶆敼鍙樺嚱鏁板悕绉�
+ },
},
- },
- ],
+ ],
+ },
},
- },
- });
+ });
+ }
chain.merge({
optimization: {
--
Gitblit v1.9.1