-
Notifications
You must be signed in to change notification settings - Fork 38
/
vue.config.js
62 lines (61 loc) · 1.37 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
const GoogleFontsPlugin = require('@beyonk/google-fonts-webpack-plugin')
module.exports = {
pwa: {
workboxOptions: {
skipWaiting: true
},
manifestOptions: {
name: "WebDrop",
short_name: "WebDrop",
start_url: "./",
display: "standalone",
theme_color: "#23D160",
icons: [
{
src: "./favicon.svg",
sizes: "512x512",
type: "image/svg+xml",
purpose: "any maskable",
},
],
},
themeColor: "#23D160",
msTileColor: "#000000",
appleMobileWebAppCapable: "yes",
appleMobileWebAppStatusBarStyle: "black",
iconPaths: {
maskicon: null,
favicon32: "./favicon32.png",
favicon16: "./favicon16.png",
appleTouchIcon: "./favicon.png",
msTileImage: "./favicon.png",
},
// configure the workbox plugin
workboxPluginMode: "GenerateSW",
},
pluginOptions: {
webpackBundleAnalyzer: {
openAnalyzer: false
},
prerenderSpa: {
registry: undefined,
renderRoutes: [
'/',
'/grid'
],
useRenderEvent: true,
headless: true,
onlyProduction: false
}
},
configureWebpack: {
plugins: [
new GoogleFontsPlugin({
fonts: [
{ family: 'Ubuntu', variants: ['300', '400'] }
],
apiUrl: "https://gwfh.mranftl.com/api/fonts"
})
]
}
}