You can not 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
694 B

module.exports = {
// 基本路径
publicPath: "./",
// 构建输出目录
outputDir: "dist",
// 静态文件
assetsDir: "static",
// html路径
indexPath: "index.html",
// 文件名哈希
filenameHashing: true,
lintOnSave: true,
// 请求配置
devServer: {
//自动打开浏览器
port: "8080",
host: "localhost",
open: true,
proxy: {
"/sylxzk/etl/": {
target: process.env.VUE_APP_BASE_URL || 'http://192.168.2.22:60010/', //要跨域的域名 目标地址
changeOrigin: true, //是否开启跨域 是否更改源路径
ws: true,
pathRewrite: {
"^/sylxzk/etl/": "",
},
},
},
},
};