-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
67 lines (55 loc) · 1.59 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
64
65
66
67
const isProd = process.env.NODE_ENV === 'production'
const assetsCDN = {
// webpack build externals
externals: {
vue: 'Vue',
'vue-router': 'VueRouter',
vuex: 'Vuex',
axios: 'axios'
},
css: [],
// https://unpkg.com/browse/vue@2.6.10/
js: [
'//cdn.jsdelivr.net/npm/vue@3.0.0/dist/vue.min.js',
'//cdn.jsdelivr.net/npm/vue-router@4.1.3/dist/vue-router.min.js',
'//cdn.jsdelivr.net/npm/vuex@3.6.2/dist/vuex.min.js',
'//cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js'
]
}
const vueConfig = {
runtimeCompiler: true,
css: {
//设置Ant-Desint 主题
loaderOptions: {
less: {
modifyVars: {
// less vars,customize ant design theme
// 'primary-color': '#1890ff',
// 'link-color': '#1890ff',
// 'border-radius-base': '4px'
},
// DO NOT REMOVE THIS LINE
javascriptEnabled: true
}
}
},
devServer: {
// development server port 8000
hot: true, //热加载
open: true,
port: 9999,
// proxy: {
// '/api': {
// target: 'http://192.168.101.112:99/',
// // ws: false,
// changeOrigin: true,
// pathRewrite: {
// '^/api': 'http://192.168.101.112:9999/'
// }
// }
// }
},
productionSourceMap: false,
lintOnSave: false,
}
module.exports = vueConfig