From 6dcaf1eec6c8e0326c27e8e7726e3d976e5b1026 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 10 十一月 2025 10:28:23 +0800
Subject: [PATCH] fix: bug

---
 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