Quasar with default option cannot produce a PWA that can be used offline, here is how to #18237
Unanswered
DavidHequet
asked this question in
Ideas / Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Having the same problem that this issue (#13770 (comment)) i investigated the build process of the Quasar PWA
Quasar with default option build an index.xxxx.js file entry point used in index.html
If you use GeneratedSW option, this file is ignored by workbox because of his size (arround 2.7MB for the default quasar projection, max is set to 2MB)
You can avoid this by change the default maximumFileSizeToCacheInBytes in quasar.config.js like this:
But the main problem is that you don't have any warning, workbox provide warning for not included files.
A simple improvment in quasar could be done in this file: app-vite/lib/modes/pwa/utils.js
Beta Was this translation helpful? Give feedback.
All reactions