A parce-bundler plugin to replace the filename URLs in Service Worker with their hashed counterparts
npm install parcel-plugin-sw-asset-urlsnpm install parcel-plugin-sw-asset-urls -D
yarn add parcel-plugin-sw-asset-urls -D
install event of a Service Worker. Although parcel generates the assets with hashed filenames in the dist directory & copies over the service worker (sw.js), it doesn't check & replace the original filenames with their hashed counterparts in service worker js file
sw.js in dist directory to reflect hashed filename URLs