Skip to content

Commit

Permalink
feat: support rollup assets file names (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Dec 12, 2022
1 parent c19785f commit d8d2d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/options.ts
Expand Up @@ -76,7 +76,7 @@ export async function resolveOptions(options: Partial<VitePWAOptions>, viteConfi
globDirectory: outDirRoot,
offlineGoogleAnalytics: false,
cleanupOutdatedCaches: true,
dontCacheBustURLsMatching: /\.[a-f0-9]{8}\./,
dontCacheBustURLsMatching: /[.-][a-f0-9]{8}\./,
mode,
navigateFallback: 'index.html',
}
Expand All @@ -85,7 +85,7 @@ export async function resolveOptions(options: Partial<VitePWAOptions>, viteConfi
swSrc,
swDest,
globDirectory: outDirRoot,
dontCacheBustURLsMatching: /\.[a-f0-9]{8}\./,
dontCacheBustURLsMatching: /[.-][a-f0-9]{8}\./,
injectionPoint: 'self.__WB_MANIFEST',
}

Expand Down

0 comments on commit d8d2d36

Please sign in to comment.