erp/resources/frontend/vue.config.js

25 lines
587 B
JavaScript
Raw Normal View History

2022-08-02 10:16:07 +08:00
module.exports = {
lintOnSave: false,
2022-08-16 19:57:31 +08:00
publicPath: "./", // 配置打包之后的相对路径
2022-08-02 10:16:07 +08:00
devServer: {
open: true, // 设置浏览器自动打开项目
port: 8080, // 开发服务器运行端口号
overlay: {
warnings: false,
2022-08-16 19:57:31 +08:00
errors: true,
2022-08-02 10:16:07 +08:00
},
2022-08-16 19:57:31 +08:00
proxy: {
// 配置代理
"/api": {
2022-08-02 10:16:07 +08:00
// target: 'http://doc.ii090.com/mock/267/',
2022-08-16 19:57:31 +08:00
target: "http://erp.staging.miaoxuan66.cn",
2022-08-02 10:16:07 +08:00
changeOrigin: true, // 开启代理
2022-08-16 19:57:31 +08:00
pathRewrite: {
// 重命名
"^/api": "api",
},
},
},
},
};