NekR / offline-plugin

Offline plugin (ServiceWorker, AppCache) for webpack (https://webpack.js.org/)
MIT License
4.52k stars 295 forks source link

Pass ServiceWorker version to the install events #503

Open auxcoder opened 2 years ago

auxcoder commented 2 years ago

This is a request, not an issue.

Would be nice to log the event onUpdated and/or onUpdateFailed (or any) with the version option set on the plugin config. I'm using '[hash]' as a value which fit in my flow as it change with every build. Due to this change is useful login these data to better debug users issues.