GoogleChromeLabs / sw-precache

[Deprecated] A node module to generate service worker code that will precache specific resources so they work offline.
https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw
Apache License 2.0
5.22k stars 388 forks source link

Can I use sw-precache on a server that doesn't have npm #298

Closed beany-vu closed 7 years ago

beany-vu commented 7 years ago

Is it possible if I install/generate files on my local and then push the generated files into server that doesn't have the npm. Do you agree with this solution or we have the better one?

jeffposnick commented 7 years ago

Yes, as long as you deploy the current assets along with a service worker file that corresponds to those assets, you can generate everything locally and then host it on a remote server.