-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
48 lines (46 loc) · 1.29 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
const path = require('path')
module.exports = {
lintOnSave:false,
chainWebpack(config) {
config.resolve.symlinks(false)
config.resolve.alias.set( 'vue', path.resolve('./node_modules/vue'))
},
css: {
loaderOptions: {
less: {
modifyVars: {
// less vars,customize ant design theme
// 'primary-color': '#F5222D',
// 'link-color': '#F5222D',
'border-radius-base': '2px'
},
// DO NOT REMOVE THIS LINE
javascriptEnabled: true
}
}
},
devServer: {
// development server port 8000
port: 8000,
allowedHosts: [
'*' // .是二级域名的通配符
],
// If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
proxy: {
"/gateway/": {
target: "http://localhost:10000",
ws: false,
changeOrigin: true,
pathRewrite: {"^/gateway": "/"}
},
"/upload/": {
target: "http://localhost:10000",
}
}
},
pluginOptions: {
electronBuilder: {
nodeIntegration: true
}
}
}