You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
// const { defineConfig } = require('@vue/cli-service')
// module.exports = defineConfig({
// transpileDependencies: true
// })
module . exports = {
// productionSourceMap: false,
// publicPath: process.env.NODE_ENV === "production" ? "./" : "/",
// lintOnSave: false,
devServer : {
open : true , // 自动打开浏览器
//host: "0.0.0.0", // 真机模拟,使用
port : "9012" , // 前台代理端口号
https : false , // https: {type: Booleam}
hot : "only" , // 热更新
proxy : { // 设置代理
'/api' : {
// target: 'http://192.168.1.107:8888', //后台地址
target : 'http://8.134.10.251:8888' , //后台地址
// target: 'http://192.168.1.108:8888', //后台地址
// target: 'http://192.168.1.112:8888',
changeOrigin : false ,
// logLevel:'debug',
pathRewrite : {
'^/api' : '' ,
}
}
} ,
} ,
}