-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
63 lines (63 loc) · 1.72 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
module.exports = {
publicPath: './',
configureWebpack: {
externals: {
'T': 'T'
},
performance: {
hints: false
},
resolve: {
alias: {
'assets': '@/assets',
'components': '@/components',
'views': '@/views',
'common': '@/common',
'network': '@/network',
'store': '@/store'
}
}
},
// // devServer 选项单独配置
// devServer: {
// https: false,
// proxy: {
// '/home': {
// target: 'http://123.207.32.32:8000/api/wh',
// // 这个是全局的环境配置变量,单独建立的文件,以VUE_APP_开头的变量,每个文件中都可以访问,假设这里是http://www.sweeeper.com
// changeOrigin: true,
// pathRewrite: {
// '^/home': '' //需要rewrite重写的,
// }
// },
// '/detail': {
// target: 'http://123.207.32.32:8000/api/wh',
// changeOrigin: true,
// pathRewrite: {
// '^/detail': '' //需要rewrite重写的,
// }
// },
// '/recommend': {
// target: 'http://123.207.32.32:8000/api/wh',
// changeOrigin: true,
// pathRewrite: {
// '^/recommend': '' //需要rewrite重写的,
// }
// },
// '/category': {
// target: 'http://123.207.32.32:8000/api/wh',
// changeOrigin: true,
// pathRewrite: {
// '^/category': '' //需要rewrite重写的,
// }
// },
// '/subcategory': {
// target: 'http://123.207.32.32:8000/api/wh',
// changeOrigin: true,
// pathRewrite: {
// '^/subcategory': '' //需要rewrite重写的,
// }
// }
// }
// }
}