PWABuilder
PWABuilder copied to clipboard
[VSCODE / Starter] Service Workers should be greatly simplified
Tell us about your feature idea
While https://developers.google.com/web/tools/workbox/ is great for more complex setups, many users don't actually need the features Workbox has, which makes the added complexity of using Workbox not very worth it.
For example, our only negative review right now on the VSCode Extension is actually talking about Workbox issues, not PWA Studio issues.
Do you have an implementation or a solution in mind?
We should write a plain Service Worker, using plain JavaScript, that is the default Service Worker that users can generate. This plain Service Worker should serve as a good "base" for users to build off of. This plain Service Worker should:
- Cache Images
- Cache Fonts
if those types of assets are requested.
We should then have an advanced option that uses our current Workbox flow.
Have you considered any alternatives?
No response
This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.
This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.
I think this makes tons of sense! It would also eliminate the "why is there no service worker from generation process" question. I always wanted to learn the bare bone (simplest) way of starting any project. And have the freedom to learn more if I wanted a rather complex configuration.