Skip to content
Permalink
Browse files
fix(workbox): disable cacheAssets for dev mode
  • Loading branch information
pooya parsa committed May 6, 2019
1 parent 8de8b37 commit dbf6d67bea83a4e9376a77d46e449606f42c45bf
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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'

0 comments on commit dbf6d67

Please sign in to comment.