sw: exclude maps

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/953/head
Varun Patil 2023-11-25 12:10:59 -08:00
parent 012d6981de
commit 37b932196f
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ const manifest = self.__WB_MANIFEST as Array<PrecacheEntry>;
// Exclude files that are not needed
const filteredManifest = manifest.filter((entry) => {
return !/LICENSE\.txt(\?.*)?$/.test(entry.url ?? String());
return !/(LICENSE\.txt|\.map)(\?.*)?$/.test(entry.url ?? String());
});
precacheAndRoute(filteredManifest);