Skip to content

Commit

Permalink
fix(workbox): disable cacheAssets for dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pooya parsa committed May 6, 2019
1 parent 8de8b37 commit dbf6d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/workbox/lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function getOptions (moduleOptions) {
if (!options.assetsURLPattern) {
options.assetsURLPattern = joinUrl(options.publicPath, HMRRegex)
}
if (options.cacheAssets) {
if (options.cacheAssets && !this.options.dev) {
options.runtimeCaching.push({
urlPattern: options.assetsURLPattern,
handler: 'CacheFirst'
Expand Down

0 comments on commit dbf6d67

Please sign in to comment.