What are the best nuxt.config.js for pwa template?

gtso86
50
gtso86
commented 3 years ago

Hello @pi0 , now I'm starting to play with this template and I didn't saw much difference from webpack starter template, only the module @nuxtjs/pwa enabled.

What else should I enable to get the best performance from pwa/nuxt/etc?
Should I enable SPA?
Should I disable SSR?
Any rule I should avoid to enable it?

Thanks in advance,

0
siberiadev
5
siberiadev
commented a year ago

I just tested this template and I recognize that PWA doesn't work with SPA mode.
I use asyncData to get data from API, and when I switch nuxt to SPA and check offline mode in Application part of my chrome it shows me an error. Maybe because when I use SPA it not cache any data in worker and when I offline it try to get data again.

0
Informations
Question โ€ข Unresolved
#c10 - Created 3 years ago