forked from kulturfinder/kulturfinder.sh-frontend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vue.config.js
152 lines (152 loc) · 4.26 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
module.exports = {
css: {
loaderOptions: {
scss: {
prependData: `@import "@/styles/variables.scss";`
}
}
},
configureWebpack: {
devtool: process.env.NODE_ENV !== 'production' ? 'eval-source-map' : ''
},
productionSourceMap: process.env.NODE_ENV !== 'production',
pluginOptions: {
i18n: {
locale: 'de',
fallbackLocale: 'en',
localeDir: 'locales',
enableInSFC: false
}
},
devServer: {
https: false,
port: 8080,
host: '0.0.0.0',
proxy: {
'/api': {
target: 'https://kulturfinder.bremen.de/',
changeOrigin: true
}
}
},
pwa: {
name: process.env.VUE_APP_NAME,
description: process.env.VUE_APP_DESCRIPTION,
workboxPluginMode: 'GenerateSW',
workboxOptions: {
cleanupOutdatedCaches: true,
...(process.env.VUE_APP_TENANT !== 'hb' && { navigateFallback: '/index.html' }),
runtimeCaching: [
{
urlPattern: /^https:\/\/museumsbilder\.digicult-verbund\.de\//,
handler: 'CacheFirst',
options: {
cacheName: 'digicult-images',
expiration: {
maxAgeSeconds: 86400
},
cacheableResponse: {
statuses: [0, 200]
}
}
},
{
urlPattern: /^https:\/\/kultursphaere\.sh\/corsproxy\.php\?url=http:\/\/xtree-actor-api\.digicult-verbund\.de/,
handler: 'CacheFirst',
options: {
cacheName: 'data',
expiration: {
maxAgeSeconds: 86400
},
cacheableResponse: {
statuses: [0, 200]
}
}
},
{
urlPattern: /^https:\/\/kulturfinder\.bremen\.sh\/api/,
handler: 'CacheFirst',
options: {
cacheName: 'data',
expiration: {
maxAgeSeconds: 86400
},
cacheableResponse: {
statuses: [0, 200]
}
}
}
]
},
themeColor: '#ffffff',
msTileColor: '#ffffff',
appleMobileWebAppStatusBarStyle: 'white',
iconPaths: {
favicon32: process.env.VUE_APP_TENANT + '/favicon.svg',
favicon16: process.env.VUE_APP_TENANT + '/favicon.svg',
appleTouchIcon: process.env.VUE_APP_TENANT + '/img/icons/apple-icon-152x152.png',
maskIcon: process.env.VUE_APP_TENANT + '/img/icons/app-icon-152x152.png',
msTileImage: process.env.VUE_APP_TENANT + '/img/icons/app-icon-152x152.png'
},
manifestOptions: {
name: process.env.VUE_APP_NAME,
short_name: 'kulturfinder',
description: process.env.VUE_APP_DESCRIPTION,
icons: [
{
src: process.env.VUE_APP_TENANT + '/img/icons/app-icon-48x48.png',
type: 'image/png',
sizes: '48x48'
},
{
src: process.env.VUE_APP_TENANT + '/img/icons/app-icon-96x96.png',
type: 'image/png',
sizes: '96x96'
},
{
src: process.env.VUE_APP_TENANT + '/img/icons/app-icon-128x128.png',
type: 'image/png',
sizes: '128x128'
},
{
src: process.env.VUE_APP_TENANT + '/img/icons/app-icon-144x144.png',
type: 'image/png',
sizes: '144x144'
},
{
src: process.env.VUE_APP_TENANT + '/img/icons/app-icon-152x152.png',
type: 'image/png',
sizes: '152x152'
},
{
src: process.env.VUE_APP_TENANT + '/img/icons/app-icon-192x192.png',
type: 'image/png',
sizes: '192x192',
purpose: 'maskable'
},
{
src: process.env.VUE_APP_TENANT + '/img/icons/app-icon-256x256.png',
type: 'image/png',
sizes: '256x256'
},
{
src: process.env.VUE_APP_TENANT + '/img/icons/app-icon-512x512.png',
type: 'image/png',
sizes: '512x512'
},
{
src: process.env.VUE_APP_TENANT + '/img/icons/app-icon-1024x1024.png',
type: 'image/png',
sizes: '1024x1024'
}
],
start_url: '/',
display: 'standalone',
orientation: 'portrait-primary',
background_color: '#ffffff',
theme_color: '#ffffff',
dir: 'ltr',
lang: 'de-DE'
}
}
}