Skip to content

Commit

Permalink
sw: exclude maps
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <[email protected]>
  • Loading branch information
pulsejet committed Nov 25, 2023
1 parent 012d698 commit 37b9321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 37b9321

Please sign in to comment.