Skip to content

Commit dbf6d67

Browse files
author
pooya parsa
committed
fix(workbox): disable cacheAssets for dev mode
1 parent 8de8b37 commit dbf6d67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/workbox/lib/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function getOptions (moduleOptions) {
4242
if (!options.assetsURLPattern) {
4343
options.assetsURLPattern = joinUrl(options.publicPath, HMRRegex)
4444
}
45-
if (options.cacheAssets) {
45+
if (options.cacheAssets && !this.options.dev) {
4646
options.runtimeCaching.push({
4747
urlPattern: options.assetsURLPattern,
4848
handler: 'CacheFirst'

0 commit comments

Comments
 (0)