webpack: increase workbox cache size

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/689/merge
Varun Patil 2023-10-18 12:39:01 -07:00
parent 27b252ce9c
commit 1bf9022756
1 changed files with 1 additions and 0 deletions

View File

@ -117,6 +117,7 @@ module.exports = {
new WorkboxPlugin.InjectManifest({ new WorkboxPlugin.InjectManifest({
swSrc: path.resolve(path.join('src', 'service-worker.js')), swSrc: path.resolve(path.join('src', 'service-worker.js')),
swDest: 'memories-service-worker.js', swDest: 'memories-service-worker.js',
maximumFileSizeToCacheInBytes: (isDev ? 10 : 4) * 1024 * 1024,
}), }),
// Make appName & appVersion available as a constant // Make appName & appVersion available as a constant