ServiceWorker: skipWaiting and reload tabs when new ServiceWorker is ready

This commit is contained in:
Alex Gleason
2022-05-31 20:46:40 -05:00
parent 66399f754e
commit 174496c71d
2 changed files with 10 additions and 1 deletions

View File

@ -85,6 +85,7 @@ module.exports = merge(sharedConfig, {
ServiceWorker: {
cacheName: 'soapbox',
entry: join(__dirname, '../app/soapbox/service_worker/entry.ts'),
events: true,
minify: true,
},
cacheMaps: [{