Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

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

Open
gtso86 opened this issue Aug 22, 2017 · 1 comment
Open

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

gtso86 opened this issue Aug 22, 2017 · 1 comment

Comments

@gtso86
Copy link

gtso86 commented Aug 22, 2017

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,

This question is available on Nuxt.js community (#c10)
@siberiadev
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants