Open 7flash opened 2 weeks ago
Probably you'll get success if you do that:
vite-sw
vite-sw
as Vite pluginimport registerSW from './src/sw/index.tsx?sw'
registerSW({
scope: '/',
type: 'module'
})
but i need to pass some env variables as url params when registering, possible with vite-sw?
@7flash, no it's not possible. I'll think for that.
Currently I am registering service worker in my vite app manually,
and I wonder if I can integrate this package, and how I can do it
https://github.com/galaxydo/june-tenth-app/blob/master/src/may16-galaxy-frontend/vite.config.js#L27