PWABuilder icon indicating copy to clipboard operation
PWABuilder copied to clipboard

[VSCODE / Starter] Service Workers should be greatly simplified

Open jgw96 opened this issue 2 years ago • 3 comments

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

jgw96 avatar Mar 04 '22 19:03 jgw96

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.

ghost avatar Mar 19 '22 20:03 ghost

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.

ghost avatar Apr 03 '22 23:04 ghost

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.

beth-panx avatar Jun 10 '22 00:06 beth-panx