sw.js: Exclude index.html so Bromite Browser doesn't crash

groups
Alex Gleason 2021-07-22 20:06:18 -05:00
rodzic 67048f8ada
commit 856a04aa76
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -50,6 +50,7 @@ module.exports = merge(sharedConfig, {
optional: [ optional: [
'**/locale_*.js', // don't fetch every locale; the user only needs one '**/locale_*.js', // don't fetch every locale; the user only needs one
'**/*_polyfills-*.js', // the user may not need polyfills '**/*_polyfills-*.js', // the user may not need polyfills
'**/*.chunk.js', // only cache chunks when needed
'**/*.woff2', // the user may have system-fonts enabled '**/*.woff2', // the user may have system-fonts enabled
// images/audio can be cached on-demand // images/audio can be cached on-demand
'**/*.png', '**/*.png',
@ -83,6 +84,8 @@ module.exports = merge(sharedConfig, {
'**/*.ttf', '**/*.ttf',
'**/*-webfont-*.svg', '**/*-webfont-*.svg',
'**/*.woff', '**/*.woff',
// Don't cache index.html
'index.html',
], ],
// ServiceWorker: { // ServiceWorker: {
// entry: join(__dirname, '../app/soapbox/service_worker/entry.js'), // entry: join(__dirname, '../app/soapbox/service_worker/entry.js'),