Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Commit

Permalink
upgrade workbox
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchirls committed Mar 12, 2019
1 parent 8b5b59e commit a2bfd01
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 102 deletions.
210 changes: 110 additions & 100 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"webpack-dev-server": "^3.2.1",
"webpack-merge": "^4.2.1",
"webpack-sources": "^1.3.0",
"workbox-webpack-plugin": "^3.6.3"
"workbox-webpack-plugin": "^4.1.0"
},
"dependencies": {
"@hot-loader/react-dom": "^16.8.4",
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,10 @@ const serviceWorkerPlugin = new WorkboxPlugin.GenerateSW({
],
skipWaiting: true,
clientsClaim: true,
cleanupOutdatedCaches: true,
runtimeCaching: [{
urlPattern: mediaFilesRegex,
handler: 'cacheFirst',
handler: 'CacheFirst',
options: {}
}]
});
Expand Down

0 comments on commit a2bfd01

Please sign in to comment.