From 97eb39caf61e8ea8f70776af267f6deed51720fe Mon Sep 17 00:00:00 2001
From: 杨磊 <505174330@qq.com>
Date: 星期一, 28 七月 2025 09:43:39 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout

---
 vue.config.js |   32 +++++++++-----------------------
 1 files changed, 9 insertions(+), 23 deletions(-)

diff --git a/vue.config.js b/vue.config.js
index dfbae49..3473d09 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,10 +1,7 @@
 const { defineConfig } = require("@vue/cli-service");
 const webpack = require("webpack");
 // 鑾峰彇鎵�鏈変功绫嶅垪琛�
-const bookList = process.env.VUE_APP_BOOK_LIST
-  ? process.env.VUE_APP_BOOK_LIST.split("/")
-  : [];
-const publicPath = process.env.VUE_APP_PUBLIC_PATH;
+const bookList = process.env.VUE_APP_BOOK_LIST ? process.env.VUE_APP_BOOK_LIST.split("/") : [];
 module.exports = defineConfig({
   publicPath: process.env.VUE_APP_PUBLIC_PATH,
   transpileDependencies: true,
@@ -17,14 +14,14 @@
       "access-control-allow-origin": "*",
     },
     client: {
-      overlay: { warnings: false, errors: true },
-    },
+      overlay: { warnings: false, errors: true }
+    }
   },
   configureWebpack: {
     output: {
       library: `app-content`,
       libraryTarget: "umd",
-      chunkLoadingGlobal: `webpackJsonp_app-content`,
+      chunkLoadingGlobal: `webpackJsonp_app-content`
     },
     plugins: [
       new webpack.IgnorePlugin({
@@ -42,9 +39,9 @@
             }
           }
           return false;
-        },
-      }),
-    ],
+        }
+      })
+    ]
   },
   chainWebpack: (config) => {
     config.module
@@ -56,19 +53,8 @@
       .loader("change-prefix-loader")
       .options({
         prefix: "el-",
-        replace: "gp-",
+        replace: "gp-"
       })
       .end();
-  //   config.module
-  //     .rule("fonts")
-  //     .test(/.(woff|woff2|eot|ttf|otf|TTF)$/)
-  //     .type("asset/resource")
-  //     .use("file-loader")
-  //     .loader("file-loader")
-  //     .options({
-  //       name: "fonts/[name].[hash:8].[ext]", // 杈撳嚭鍒� dist/fonts/ 鐩綍
-  //       publicPath: publicPath, // 纭繚 publicPath 姝g‘
-  //       limit: 0,
-  //     });
-   },
+  }
 });

--
Gitblit v1.9.1