#[PWA] Service Worker in React Router v7
1 messages · Page 1 of 1 (latest)
It's a vite plugin, yeah. You still have full control of the vite config, so you can add whatever you need there to support building/bundling the service worker entrypoint.
I can't seem to find any plugin that allows me to build a separate sw.js file from a sw.ts file
I was wondering if anybody else in my situation were successful
https://vite-pwa-org.netlify.app/ seems to be pretty popular
@narrow ruin Doesn't seem to support React Router v7 for some reason: https://github.com/vite-pwa/vite-plugin-pwa/issues/809