title: PWA - Register service worker in dev mode
body: <p>I would like to try PWA with create react app version 4.0, i did manage to generate new project as below</p>
  <p><code>npx create-react-app my-app --template cra-template-pwa-typescript</code></p>
  <p>When i try to run npm start i don't see any service-worker.js registered in chrome browser but if i build and serve then it works fine. I would like to register service-worker.js in dev mode, so i followed this article <a href="https://kelvinmwinuka.com/easy-workbox-integration-with-create-react-app/" rel="nofollow noreferrer">Easy Workbox Integration with create-react-app</a>  I have removed the production environment check in serviceWorkerRegistration.ts but no luck.</p>
  <p><strong>serviceWorkerRegistration.ts</strong></p>
  <p><code>if (process.env.NODE_ENV === 'production' &amp;&amp; 'serviceWorker' in navigator)</code></p>
  <p>Please advise ?</p>