From 22a05e8a9e4ac9f5fad4dd0e181b86e313232854 Mon Sep 17 00:00:00 2001 From: zhuo <2089219845@qq.com> Date: 星期五, 23 五月 2025 15:48:55 +0800 Subject: [PATCH] 解决提交体积太大报错问题 --- vue.config.js | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/vue.config.js b/vue.config.js index 14e2478..26e5a99 100644 --- a/vue.config.js +++ b/vue.config.js @@ -36,7 +36,7 @@ proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://192.168.0.170:8002`, + target: `http://localhost:8001`, changeOrigin: true, pathRewrite: { ["^" + process.env.VUE_APP_BASE_API]: "", @@ -59,6 +59,20 @@ "@": resolve("src"), }, }, + module: { + rules: [ + { + test: /\.worker\.js$/, + use: { + loader: "worker-loader", + options: { + filename: "[name].[contenthash].worker.js", // 娣诲姞鍐呭鍝堝笇鍒版枃浠跺悕 + inline: "fallback", + }, + }, + }, + ], + }, plugins: [ // http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#浣跨敤gzip瑙e帇缂╅潤鎬佹枃浠� new CompressionPlugin({ -- Gitblit v1.9.3