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.

30 lines
854 B
JavaScript

3 years ago
// 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': '',
}
}
},
},
}