-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
51 lines (45 loc) · 1.15 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
const path = require('path')
// vue.config.js
const vueConfig = {
configureWebpack: {
// webpack plugins
plugins: []
},
chainWebpack: config => {
config.resolve.alias.set('@$', path.join(__dirname, 'src'))
},
css: {
loaderOptions: {
less: {
modifyVars: {
// less vars,customize ant design theme
'primary-color': 'orange',
'link-color': 'orange',
'font-size-base': '14px',
'text-color-secondary': 'fade(#000, 45%)',
'border-radius-base': '2px'
},
// DO NOT REMOVE THIS LINE
javascriptEnabled: true
}
}
},
devServer: {
// development server port 8000
port: 8000
// If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
// proxy: {
// '/api': {
// target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro',
// ws: false,
// changeOrigin: true
// }
// }
},
// disable source map in production
productionSourceMap: false,
lintOnSave: undefined,
// babel-loader no-ignore node_modules/*
transpileDependencies: []
}
module.exports = vueConfig