-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
39 lines (34 loc) · 934 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
const path = require('path')
const resolve = dir => {
return path.join(__dirname, dir)
}
module.exports = {
productionSourceMap:false,
chainWebpack: config => {
config.resolve.alias
.set('@', resolve('src'))
.set('_c', resolve('src/components'))
},
devServer: {
// proxy: {
// '/api': {
// target: 'http://copyright.qa.17usoft.com',
// changeOrigin: true,
// headers: {
// Cookie: 'access_token=99f60dbb65d431f9ca483c579d6bf4d3'
// },
// ws: false
// }
// },
open: true
},
// 定义全局less变量
pluginOptions: {
'style-resources-loader': {
preProcessor: 'less',
patterns: [
path.resolve(__dirname, './src/common/style/setting.less'),
]
}
}
}