You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add offline support to my browser extension using vite-plugin-pwa, which uses Workbox under the hood. However, I'm running into an issue with wxt.
In a typical wxt setup, the background.ts file is registered as a service worker. But since vite-plugin-pwa also generates a sw.js, I'm not sure how to merge the two properly. I haven't found any good examples for this use case.
Has anyone successfully integrated vite-plugin-pwa with wxt? Is it even possible to combine the Workbox-generated sw.js with the background.ts service worker? I’d love to handle offline functionality through Workbox while keeping the background script intact.
Any guidance, examples, or suggestions would be greatly appreciated! 🙏
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone 👋
I'm trying to add offline support to my browser extension using vite-plugin-pwa, which uses Workbox under the hood. However, I'm running into an issue with wxt.
In a typical wxt setup, the background.ts file is registered as a service worker. But since vite-plugin-pwa also generates a sw.js, I'm not sure how to merge the two properly. I haven't found any good examples for this use case.
Has anyone successfully integrated vite-plugin-pwa with wxt? Is it even possible to combine the Workbox-generated sw.js with the background.ts service worker? I’d love to handle offline functionality through Workbox while keeping the background script intact.
Any guidance, examples, or suggestions would be greatly appreciated! 🙏
Beta Was this translation helpful? Give feedback.
All reactions