[Vuejs]-How to write PWA in Vue js?

1👍

I/(pretty sure most of us) won’t likely throw to redo service worker from scratch in any project, Workbox is also recommended tools in Google Developers’ page other than Vue CLI.

As the registerServiceWorker.js, that’s boilerplate for your service worker cycle in your App, as the logs pretty straightforward in the flow of your app process

If you wanna to do from scratch still, i would suggest read https://developers.google.com/web/fundamentals/primers/service-workers/ to understand the fundamentals. I would recommend because service-worker pretty much “I hope you know what you doing with your app like what-when-to update/caching/do-when-offline/”

👤SC Kim

Leave a comment