Skip all dotfiles from sw generation

This commit is contained in:
Olivier Chafik 2024-12-23 14:12:50 +00:00
commit 8c0057d6b2

View file

@ -49,9 +49,9 @@ module.exports = [{
...(process.env.NODE_ENV === 'production' ? [
new WorkboxPlugin.GenerateSW({
exclude: [
/(^|\/)\./,
/\.map$/,
/^manifest.*\.js$/,
/.*?\.DS_Store$/,
],
// these options encourage the ServiceWorkers to get in there fast
// and not allow any straggling "old" SWs to hang around