-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
48 lines (47 loc) · 1.33 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
module.exports = {
productionSourceMap: false,
pwa: {
name: "COVID-19 MX",
themeColor: "#232f3e",
msTileColor: "#000000",
appleMobileWebAppCapable: "yes",
appleMobileWebAppStatusBarStyle: "black",
// configure the workbox plugin
workboxPluginMode: "GenerateSW",
iconPaths: {
favicon32: "img/icons/favicon-32x32.png",
favicon16: "img/icons/favicon-16x16.png",
appleTouchIcon: "img/icons/apple-touch-icon-152x152.png",
maskIcon: "img/icons/safari-pinned-tab.svg",
msTileImage: "img/icons/msapplication-icon-150x150.png",
},
workboxOptions: {
skipWaiting: true,
// runtimeCaching: [
// {
// urlPattern: "/data/",
// handler: 'NetworkFirst',
// options: {
// // Use a custom cache name for this route.
// cacheName: 'data-cache',
// // Configure custom cache expiration.
// expiration: {
// maxEntries: 10,
// maxAgeSeconds: 300, // 30 days
// // Automatically cleanup if quota is exceeded.
// purgeOnQuotaError: true,
// },
// },
// },
// ]
},
},
configureWebpack: {
// optimization: {
// splitChunks: {
// minSize: 20000,
// maxSize: 250000
// }
// }
},
};