Closed jadjoubran closed 6 years ago
Technical analysis:
Challenges
@jadjoubran This is amazing! A GUI for workbox would lower the barrier for a lot of people to start using it 😍
Indeed! 😄 I hope to have many webdash plugins that will facilitate building PWAs
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
Progress:
Web based configuration wizard for Workbox, originally discussed in workbox#822