Skip to content

Commit

Permalink
fix: Avoid unnecessary precaching (#2258)
Browse files Browse the repository at this point in the history
  • Loading branch information
snematoda authored Mar 13, 2024
1 parent fd6e57d commit db6872f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ export default defineConfig({
VitePWA({
registerType: "autoUpdate",
workbox: {
globPatterns: ["**/*.{js,css,html,ico,svg,png}", "manifest.webmanifest"],
globPatterns: [
"**/*.{css,html}",
"**/[A-Z]*.js",
"**/index*.js",
"**/shaka-player*.js",
"manifest.webmanifest",
],
globIgnores: ["**/*-legacy-*.js"],
runtimeCaching: [
{
Expand Down

0 comments on commit db6872f

Please sign in to comment.