vue3-boilerplate icon indicating copy to clipboard operation
vue3-boilerplate copied to clipboard

How can add service-worker into boilerplate ?

Open MinhPhuPham opened this issue 3 years ago • 1 comments

I've tried to add service worker to the project. But it seems not to work. Can you add the next branch for this solution? The topic I read: https://dev.to/voodu/vue-3-pwa-service-worker-12di

My Error when add service into base.config file:

Error: NormalModuleFactory.afterResolve (CaseSensitivePathsPlugin, sw-plugin-after-resolve) is no longer a waterfall hook, but a bailing hook instead.
Do not return the passed object, but modify it instead. 
Returning false will ignore the request and results in no module created.

image: Screen Shot 2021-12-19 at 11 19 27

*Note: I added join function into .paths file

MinhPhuPham avatar Dec 19 '21 04:12 MinhPhuPham

I also have difficulties implementing PWA in this boilerplate. I do have a serviceworker.js, but there is no manifest.json generated

sprucify avatar May 05 '22 19:05 sprucify