Add:Initial setup for PWA #354

This commit is contained in:
advplyr 2022-02-08 19:09:24 -06:00
parent 3906031d62
commit 42e7b7f590
4 changed files with 102 additions and 3 deletions

View file

@ -64,6 +64,7 @@ module.exports = {
buildModules: [
// https://go.nuxtjs.dev/tailwindcss
'@nuxtjs/tailwindcss',
'@nuxtjs/pwa'
],
// Modules: https://go.nuxtjs.dev/config-modules
@ -97,6 +98,26 @@ module.exports = {
baseURL: process.env.serverUrl || ''
},
// nuxt/pwa https://pwa.nuxtjs.org
pwa: {
icon: {
source: 'Logo.png'
},
meta: {
appleStatusBarStyle: 'black-translucent',
name: 'Audiobookshelf',
theme_color: '#373838'
},
manifest: {
name: 'Audiobookshelf',
short_name: 'Audiobookshelf',
background_color: '#373838'
},
// workbox: {
// enabled: true // TEMP for dev
// }
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {},
watchers: {