vite-pwa / docs

Documentation: PWA integrations for Vite and the ecosystem
https://vite-pwa-org.netlify.app/
MIT License
196 stars 42 forks source link

Any way to know if you're in a PWA? #94

Open watzon opened 8 months ago

watzon commented 8 months ago

Wondering if there's anyway to apply conditional styling based on whether or not you're within a PWA. Would be nice to have if not.

userquin commented 8 months ago

@watzon you can check nuxt integration impl. here https://github.com/vite-pwa/nuxt/blob/main/templates/pwa.client.ts#L15 , check the link