From 4acf12605ae97ec9b30a4b9706d5acea91070157 Mon Sep 17 00:00:00 2001
From: 1012414140@qq.com <1012414140@qq.com>
Date: 星期三, 24 十二月 2025 17:26:15 +0800
Subject: [PATCH] feat: 去缴费功能

---
 vue.config.js |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/vue.config.js b/vue.config.js
index 0331b37..7295a47 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -2,6 +2,18 @@
 module.exports = {
     baseUrl: './',
     configureWebpack: {
+        optimization: {
+            minimizer: [
+                new (require('terser-webpack-plugin'))({
+                    terserOptions: {
+                        compress: {
+                            drop_console: true, // 鍒犻櫎鐢熶骇鐜console.log
+                            drop_debugger: true, // 鍒犻櫎debugger
+                        }
+                    }
+                })
+            ]
+        },
         resolve: {
             alias: {
                 '@': path.join(__dirname, 'src')
@@ -24,5 +36,20 @@
                 }
             }
         }
+    },
+    chainWebpack : config => {
+        // 鍥剧墖鍘嬬缉锛堥渶瑕佸畨瑁卛mage-webpack-loader锛歯pm install image-webpack-loader -D锛�
+        config.module
+            .rule('images')
+            .use('image-webpack-loader')
+            .loader('image-webpack-loader')
+            .options({
+                mozjpeg: { progressive: true, quality: 65 },
+                optipng: { enabled: false },
+                pngquant: { quality: [0.65, 0.9], speed: 4 },
+                gifsicle: { interlaced: false },
+                webp: { quality: 75 } // WebP鍘嬬缉璐ㄩ噺
+            })
+            .end();
     }
 }

--
Gitblit v1.9.1