title: Alert users to refresh when there is a new deployment in react using web-pack and not create-react-app
body: <p>I am trying to alert users when there is a new version deployed in my react app. Here I am using webpack to bundle our modular application which yields a deployable /dist directory. Once the contents of /dist have been deployed to a server, clients (typically browsers) will hit that server to grab the site and its assets. I am using caching techniques as mentioned in <a href="https://webpack.js.org/guides/caching/" rel="nofollow noreferrer">https://webpack.js.org/guides/caching/</a> and for each deployment, I am getting new content hash id.</p>
  <p>I need something similar to the below screenshot where the user gets a notification to refresh the page. Is there any way you guys can help me out in this?</p>
  <p><img src="https://i.stack.imgur.com/6Xa3s.png" alt="Screenshot" /></p>