From a16b246d41646e28d52998647439d92df69f405f Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 20 Oct 2021 17:07:10 -0500 Subject: [PATCH] ServiceWorker: do serve index.html from the ServiceWorker after all, add appShell option --- webpack/production.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/webpack/production.js b/webpack/production.js index e74d09dc2..f3aaaaafe 100644 --- a/webpack/production.js +++ b/webpack/production.js @@ -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, '/'), }), ], });