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 |   46 ++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 42 insertions(+), 4 deletions(-)

diff --git a/vue.config.js b/vue.config.js
index 5921df5..7295a47 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,17 +1,55 @@
+var path = require("path")
 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')
+            }
+        }
+    },
     assetsDir: 'static',
     productionSourceMap: false,
     devServer: {
+        sockHost: 'localhost',
+        port: 8082,
+        disableHostCheck: true,
         proxy: {
-            '/api':{
-                target:'http://183.196.93.178',
-                //target:'http://127.0.0.1',
+            '/':{
+                target:'http://183.196.93.178:8089',
+                //target:'http://127.0.0.1:8089',
                 changeOrigin:true,
                 pathRewrite:{
-                    '/api':''
+                    '/':''
                 }
             }
         }
+    },
+    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