vite-pwa / vitepress

Zero-config PWA Plugin for VitePress
https://vite-pwa-org.netlify.app/frameworks/vitepress
MIT License
36 stars 2 forks source link

check mpa #10

Closed userquin closed 1 year ago

userquin commented 1 year ago

not working in pwa-prompt example, there is no client build!

EDIT: we should check if adding a custom plugin removing the ssr check (on pwa build plugin) works (it should work: we're getting the api reference using mpa flag)

userquin commented 1 year ago

just adding the closeBundle hook here https://github.com/userquin/vite-pwa-vitepress-integration/blob/main/src/index.ts#L40, checking for api and mpa and calling api.generateSW() should work

userquin commented 1 year ago

Mpa support in vitepress seems to be broken...