Поправка настроек SW

This commit is contained in:
Book Pauk
2020-05-21 01:51:47 +07:00
parent 70a7a0e344
commit e646de85a7

View File

@@ -60,6 +60,7 @@ module.exports = merge(baseWpConfig, {
swDest: `${publicDir}/service-worker.js`,
navigateFallback: '/index.html',
navigateFallbackDenylist: [new RegExp('^/api'), new RegExp('^/ws'), new RegExp('^/tmp'),],
skipWaiting: true,
}),
]
});