-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
45 lines (45 loc) · 1000 Bytes
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
module.exports = {
baseUrl: "/",
outputDir: "dist",
assetsDir: "",
pages: {
index: {
entry: "src/main",
template: "public/index.html"
}
},
css: {
loaderOptions: {
less: {
javascriptEnabled: true
}
}
},
devServer: {
open: true, //配置自动启动浏览器
https: false,
// before(app) {
// app.get("/api/token", (req, res, next) => {
// res.json(loginData);
// });
// },
// 直联后端时用
// proxy: {
// '^/action|file|export/': {
// target: 'http://172.16.0.12:10280/api/resources',
// },
// },
// 通过 corestone 时用
proxy: {
"^/users|good/": {
target: "http://192.168.31.39:3000",
// target: "http://121.4.97.71:8001",
changeOrigin: true, //是否跨域
// pathRewrite: {
// "^/users": "users"
// }
// HOST: 172.16.0.20 testing.shrine-via-core-stone.cloudcare.cn
}
}
}
};