Joaquín Sánchez
Joaquín Sánchez
so Vite build is changed to public/build folder, revert outDir to public/build and remove sw.js, registerSW.js and workbox-*.js from public folder
@vdegenne pwa plugin not ready to consume assets folder (Vite will transform them adding hash to the name), there is a PR WIP https://github.com/vite-pwa/vite-plugin-pwa/pull/397, the docs can be found here:...
Move injectManifest entry to root pwa plugin options, it is not a manifest property, it is a pwa plugin option.
try removing these entries from the `injectManifest` option: ```ts swSrc: 'src/sw.js', swDest: 'sw.js', globDirectory: 'dist', ``` EDIT: check react example and custom sw here https://github.com/vite-pwa/vite-plugin-pwa/blob/main/examples/react-router/src/prompt-sw.ts#L12
@hikariNTU it is a problem with the user agent (Safari/iOS/macOS), we cannot do anything here
@o-alexandrov I'm missing with this issue: enabling devOptions, just registers a Vite plugin for dev, any plugin can apply any transformation to the custom sw, on closed issue I show...
@o-alexandrov on dev it works:   
@o-alexandrov can you send a PR with your proposal? I guess we need to add: - include vite stuff on custom sw on dev plugin: https://github.com/sxyazi/vite-plugin-native-sw/blob/main/src/index.ts#L153 - allow configure custom...
https://github.com/vite-pwa/vite-plugin-pwa/pull/506
So, now the problem is in dev mode, I Will check your repo and try to fix it.