开发者

converting a symfony project to PWA

I'm trying to convert a symfony project to PWA. However, I always get a 404 error on this part (generated service-worker.js)

generated service-worker.js

this is the error on my console console error

this is my project directory btw project directory

I run the sw-precache in my root directory (not web folder - our 'public' folder) and just edited my nginx config to be able to register it. And since I just ran that command on 开发者_JAVA百科my directory, it added ALL my files in the precacheConfig in the generated service-worker.js

Is that even correct? If not, how do I know the pages that should be included in the precacheConfig and how can I set it too?

ALSO, is it really possible to convert a symfony project to PWA? If not, do you have any suggestions on what else to use?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜