From 856a04aa764ede85b531e74c954b831d8783cbe3 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 22 Jul 2021 20:06:18 -0500 Subject: [PATCH] sw.js: Exclude index.html so Bromite Browser doesn't crash --- webpack/production.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webpack/production.js b/webpack/production.js index 20dca9190..1398d35c8 100644 --- a/webpack/production.js +++ b/webpack/production.js @@ -50,6 +50,7 @@ module.exports = merge(sharedConfig, { optional: [ '**/locale_*.js', // don't fetch every locale; the user only needs one '**/*_polyfills-*.js', // the user may not need polyfills + '**/*.chunk.js', // only cache chunks when needed '**/*.woff2', // the user may have system-fonts enabled // images/audio can be cached on-demand '**/*.png', @@ -83,6 +84,8 @@ module.exports = merge(sharedConfig, { '**/*.ttf', '**/*-webfont-*.svg', '**/*.woff', + // Don't cache index.html + 'index.html', ], // ServiceWorker: { // entry: join(__dirname, '../app/soapbox/service_worker/entry.js'),