From 39fe8d064f84088d1f8a897495fa05baf671bba8 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 10 十一月 2025 18:34:48 +0800
Subject: [PATCH] fix: bug
---
apps/underTakeMiniApp/config/index.js | 30 ++++++++++++++++--------------
1 files changed, 16 insertions(+), 14 deletions(-)
diff --git a/apps/underTakeMiniApp/config/index.js b/apps/underTakeMiniApp/config/index.js
index 62cdca5..56463ca 100644
--- a/apps/underTakeMiniApp/config/index.js
+++ b/apps/underTakeMiniApp/config/index.js
@@ -136,22 +136,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