When I performed 'npm run build', A new file named sw.js appeared in build folder, but how to use this file?
You don't use it directly: it's the ServiceWorker generated by the Webpack Offline plugin. It handles caching, offline-first features, etc.
@rangerch, you can remove it
https://github.com/mxstbr/react-boilerplate/blob/master/docs/general/remove.md#removing-offline-access
Thanks! @oliverturner @avdeev
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
You don't use it directly: it's the ServiceWorker generated by the Webpack Offline plugin. It handles caching, offline-first features, etc.