Skip to content

Commit

Permalink
use cacheID for service worker
Browse files Browse the repository at this point in the history
  • Loading branch information
skedwards88 committed Oct 30, 2023
1 parent 66594fb commit 920a498
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const path = require("path");
const WorkboxPlugin = require("workbox-webpack-plugin");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const CopyPlugin = require("copy-webpack-plugin");
const packageJson = require("./package.json")

module.exports = (env, argv) => {
if (argv.mode === "development") {
Expand Down Expand Up @@ -68,6 +69,7 @@ module.exports = (env, argv) => {
clientsClaim: true,
skipWaiting: true,
maximumFileSizeToCacheInBytes: 4200000, // special case to cache word list for offline play
cacheId: packageJson.version,
});

const plugins =
Expand Down

0 comments on commit 920a498

Please sign in to comment.