forked from CzBiX/qb-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
43 lines (38 loc) · 838 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
43
module.exports = {
outputDir: 'dist/public',
publicPath: './',
pwa: {
// name: "qb-web",
themeColor: "#4d8ad5",
msTileColor: "#4d8ad5",
appleMobileWebAppCapable: 'yes',
iconPaths: {
favicon32: 'img/icons/favicon-32x32.png',
favicon16: 'img/icons/favicon-16x16.png',
appleTouchIcon: 'img/icons/apple-touch-icon.png',
maskIcon: null,
msTileImage: null,
},
workboxOptions: {
importWorkboxFrom: 'local',
},
},
devServer: {
port: 8000,
proxy: {
'/api': {
target: 'http://qb.test:8080',
},
},
},
chainWebpack(config) {
config.plugin('define').tap(args => {
let arg = args[0]
arg = {
...arg,
'process.env.GIT_TAG': JSON.stringify(process.env.GIT_TAG),
}
return [arg]
})
},
};