3

I don't need PWA features in current project. How i can disable it?

I read the docs of CRA, delete service-Worker.js in src folder, but i can't exclude manifest file and service-worker.js in build.

Kirill Semenov
  • 165
  • 1
  • 8

1 Answers1

4

You have to remove:

  • <link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> from public/index.html
  • serviceWorker.unregister(); or serviceWorker.register(); from src/index.js

Remember to unregister the SW before removing it, so the browser detach it from your domain.

Mattia M.
  • 464
  • 1
  • 4
  • 16