ServiceWorker: do serve index.html from the ServiceWorker after all, add appShell option

sw-disable-appshell
Alex Gleason 2021-10-20 17:07:10 -05:00
rodzic 97cc7eb804
commit a16b246d41
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -74,9 +74,6 @@ module.exports = merge(sharedConfig, {
'**/*.ogg',
'**/*.oga',
'**/*.mp3',
// Don't serve index.html
// https://github.com/bromite/bromite/issues/1294
'index.html',
'404.html',
'assets-manifest.json',
// It would be nice to serve these, but they bloat up sw.js
@ -89,6 +86,7 @@ module.exports = merge(sharedConfig, {
minify: true,
},
safeToUseOptionalCaches: true,
appShell: join(FE_SUBDIRECTORY, '/'),
}),
],
});