Update PWA configuration

This commit is contained in:
John Harker
2019-09-29 14:21:43 +01:00
committed by GitHub
parent bb671547d6
commit b6b3216f55

View File

@@ -213,15 +213,27 @@ export default {
*/ */
modules: [ modules: [
// See https://goo.gl/OOhYW5 // See https://goo.gl/OOhYW5
['@nuxtjs/pwa', { ['@nuxtjs/pwa'],
['@nuxtjs/axios'],
['@nuxtjs/toast'],
['@nuxtjs/google-analytics']
],
pwa: {
manifest: { manifest: {
name: meta.name, name: meta.name,
short_name: meta.name, short_name: meta.name,
description: meta.shortDescription,
display: "standalone", display: "standalone",
theme_color: "#252628",
background_color: "#252628", background_color: "#252628",
start_url: `${routerBase.router.base}`, start_url: `${routerBase.router.base}`
},
meta: {
description: meta.shortDescription,
theme_color: "#252628",
},
icons: ((sizes) => { icons: ((sizes) => {
let icons = []; let icons = [];
for (let size of sizes) { for (let size of sizes) {
@@ -233,12 +245,7 @@ export default {
} }
return icons; return icons;
})([48, 72, 96, 144, 192, 512]) })([48, 72, 96, 144, 192, 512])
} },
}],
['@nuxtjs/axios'],
['@nuxtjs/toast'],
['@nuxtjs/google-analytics']
],
toast: { toast: {
position: 'bottom-center', position: 'bottom-center',
duration: 2000, duration: 2000,