Joaquín Sánchez
Joaquín Sánchez
You can only use import statement on chromium based browsers: this plugin will not build the sw in dev, it will just delegates the request to Vite. You can disable...
@amreladawy are you proxing requests? If so, try to exclude the client assets or transform response headers.
@mmn6d6d6e @vheins The problem with PWA is about the scope and the location of the service worker and web manifest assets. Since `vite-laravel-plugin` is hacking Vite to write all assets...
@Stan-BK you can only test it on chromium based browsers (chrome, Edge, Chromium), if you are using `generateSW` startegy (the default), don't use tyoe module, remove the entry
@ad1992 the regex is applied to the build/dist folder not to the src folder. Try adding a custom regex for locale assets, something like this `/^assets\/[a-z]{2}-[A-Z]{2}\./`
If you want to exclude them also from sw precache you need to add similar glob pattern to ignore entry. EDIT: you can also add a `manifestTransform` to filter out...
@ad1992 The json files are converted to js files when you build the repo, and so you need to exclude the js files, not the json files. `workbox-build` will run...


@ad1992 maybe you need to modify assets names for any locale and move it to a custom folder (`locales/` for example), then you can use `workbox: { globIgnores: ['locales/**'] }`....