-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
52 lines (52 loc) · 1.37 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
/* 开发使用 代理 */
module.exports = {
productionSourceMap: false,
devServer: {
port: 8888,
disableHostCheck: true,
/*proxy: {
'/article':{
target: 'http://localhost:10888',
changeOrigin: true
},
'/comment':{
target: 'http://localhost:10888',
changeOrigin: true
},
'/toQQLogin':{
target: 'http://localhost:10888',
changeOrigin: true
},
'/oauth2':{
target: 'http://localhost:10888',
changeOrigin: true
},
'/logout':{
target: 'http://localhost:10888',
changeOrigin: true
},
'/auth':{
target: 'http://localhost:10888',
changeOrigin: true
}
}*/
},
chainWebpack(config) {
// 移除 preload 插件
config.plugins.delete('preload')
// 移除 prefetch 插件
config.plugins.delete('prefetch')
//config.plugins.delete('preload-${name}')//可配置移除预加载的页面。eg:login.html则添加config.plugins.delete('preload-login'),
},
pages:{
index:{
entry: 'src/pages/index/main.js',
template: 'public/index.html'
},
admin:{
entry: 'src/pages/admin/main.js',
template: 'public/index.html',
filename: 'admin'
}
}
};