From 36e044280298d6f6b37b1295f9eba25584ef66a2 Mon Sep 17 00:00:00 2001 From: Gary Gu <garygu@Garydebijibendiannao.local> Date: Wed, 28 May 2025 09:13:42 +0800 Subject: [PATCH] feat: 增加设备分类 --- vite.config.js | 16 +++++++--------- 1 files changed, 7 insertions(+), 9 deletions(-) diff --git a/vite.config.js b/vite.config.js index 35a9e98..b0162fb 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,7 +2,7 @@ * @Author: gjj Ganjj@probim.com.cn * @Date: 2025-02-14 14:32:19 * @LastEditors: gjj Ganjj@probim.com.cn - * @LastEditTime: 2025-03-17 11:38:32 + * @LastEditTime: 2025-03-17 14:42:01 * @FilePath: \北京交通大学\vite.config.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -42,12 +42,17 @@ additionalData: "@import '@css/sass.scss';", }, }, + loaderOptions: { + postcss: { + plugins: [postcss] + } + } }, server: { proxy: { "^/api/": { // target: "http://47.117.124.20:2002/", - target: "http://8.140.54.245:5000/", + target: "http://101.201.155.10:4011/", rewrite: (path) => path.replace(/^\/api\//, ""), changeOrigin: true, //通过浏览器查看像是"未生效",实际发送给后端的是更改过的Host(与target的host相同) }, @@ -65,13 +70,6 @@ config.module.rule("css").test(/\.css$/).oneOf("vue").use("px2rem-loader").loader("px2rem-loader").options({ remUnit: 192, }).end(); - }, - css: { - loaderOptions: { - postcss: { - plugins: [postcss] - } - } }, build: { minify: "esbuild", -- Gitblit v1.9.3