-
Notifications
You must be signed in to change notification settings - Fork 34
/
vue.config.js
42 lines (42 loc) · 926 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
module.exports = {
assetsDir: 'static',
devServer: {
open: true,
proxy: {
'/api': {
target: 'http://127.0.0.1:7001'
},
'/public': {
target: 'http://127.0.0.1:7001'
},
'/socket.io': {
target: 'http://127.0.0.1:7001',
ws: true
}
},
port: 3000
},
configureWebpack: {
plugins: [],
externals: {
BMap: 'BMap',
vue: 'Vue',
'vue-router': 'VueRouter',
vuex: 'Vuex',
vant: 'vant',
xgplayer: 'Player',
'socket.io-client': 'io',
axios: 'axios',
'vue-page-stack': 'VuePageStack',
'@better-scroll/core': 'BScroll'
}
},
css: {
loaderOptions: {
sass: {
// 不再需要sass-resources-loader
prependData: '@import "@/common/style/var/color.scss";@import "@/common/style/var/size.scss";'
}
}
}
};