jadjoubran / webdash

🔥 Orchestrate your web project with Webdash the customizable web dashboard
https://webdash.xyz
MIT License
1.55k stars 70 forks source link

Workbox plugin #55

Closed jadjoubran closed 6 years ago

jadjoubran commented 6 years ago

Web based configuration wizard for Workbox, originally discussed in workbox#822

jadjoubran commented 6 years ago

Technical analysis:

Challenges

kakadiadarpan commented 6 years ago

@jadjoubran This is amazing! A GUI for workbox would lower the barrier for a lot of people to start using it 😍

jadjoubran commented 6 years ago

Indeed! 😄 I hope to have many webdash plugins that will facilitate building PWAs

jadjoubran commented 6 years ago

Development started 👉jadjoubran/webdash-workbox

Here's the workbox-config.js from webdash:

module.exports = {
  "globDirectory": "build/default",
  "globPatterns": [
  "**/*.{html,js,png,xml,ico,svg,json}",
  ],
  "globIgnores": [
  "bower_components/**"
  ],
  "swDest": "build/default/service-worker.js",
  "runtimeCaching": [{
    urlPattern: /bower_components\//,
    handler: 'cacheFirst',
  }]
};

The webdash workbox plugin will guess some defaults, especially those available in webdash.json runtimeCaching generation won't be supported out of the box (at least not in the first version) and all of these guesses will be validated by the user

jadjoubran commented 6 years ago

Progress:

gif

screen shot 2018-04-05 at 2 36 57 pm screen shot 2018-04-05 at 2 37 01 pm screen shot 2018-04-05 at 2 37 05 pm
jadjoubran commented 6 years ago

Video preview

jadjoubran commented 6 years ago