jeffposnick / create-react-pwa

https://github.com/facebookincubator/create-react-app + Progressive Web App goodness

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

service-worker.js

smarigowda opened this issue · comments

where is service-worker.js stored?

It's generated as part of the build process by the sw-precache command line tool. When used as illustrated in this repo, it will be written out to build/service-worker.js.

You can see an example of what gets generated in the gh-pages branch, which has a deployed version of the PWA: https://github.com/jeffposnick/create-react-pwa/blob/gh-pages/service-worker.js

Thank you