From 770dae03ffe931e4c2dfc1860b60c058cc5ed149 Mon Sep 17 00:00:00 2001 From: wangjuncheng <1> Date: 星期四, 24 七月 2025 11:11:31 +0800 Subject: [PATCH] 345 --- vue.config.js | 40 +++++++++++++++++++++++++++++++++++++--- 1 files changed, 37 insertions(+), 3 deletions(-) diff --git a/vue.config.js b/vue.config.js index ca0d342..295e1fd 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,13 +1,47 @@ const { defineConfig } = require('@vue/cli-service'); -const path = require("path"); +const path = require('path'); module.exports = defineConfig({ + runtimeCompiler: false, //鏂板 + productionSourceMap: false, //鏂板 transpileDependencies: true, configureWebpack: { resolve: { alias: { - "@": path.resolve("src") + '@': path.resolve(__dirname, 'src') } } + }, + //鏂板 + devServer: { + port: 8080, + open: true, + host: '0.0.0.0', + https: false, + hot: true, + proxy: { + '/api': { + target: 'http://192.168.37.60:8088', + // target: 'http://192.168.1.104:8078', + changeOrigin: true, + // pathRewrite: { + // '^/api': '' + // }, + secure: false + }, + '/hp': { + target: 'http://192.168.56.106:9533', + changeOrigin: true, + pathRewrite: { + '^/hp': '' + }, + secure: false + }, + '/simu': { + target: 'http://192.168.37.60:8088', + changeOrigin: true, + secure: false + }, + } } -}) +}); \ No newline at end of file -- Gitblit v1.9.3