Skip to content

moving between webpack and vite breaks PWA update process #14046

Answered by ssuess
ssuess asked this question in CLI - PWA mode
Discussion options

You must be logged in to vote

Ok, I found a solution! I began by painstakingly reviewing the build output differences between workbox and vite, and I noticed that the default name for the service worker file CHANGED in quasar config from service-worker.js to sw.js. This totally breaks the update process. Changing the quasar.config.js file from its default swFilename: 'sw.js' to swFilename: 'service-worker.js' fixes this. I feel like there should be a BIG warning when moving to vite to check this if you are not starting from scratch. I will make a PR for the docs.

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ontwikkelfabriek
Comment options

@metalsadman
Comment options

@ssuess
Comment options

Answer selected by ssuess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants