tests on service worker
This commit is contained in:
parent
ae6b6fbae4
commit
b7096d8646
@ -7,12 +7,17 @@ module.exports = {
|
|||||||
appleMobileWebAppCache: "yes",
|
appleMobileWebAppCache: "yes",
|
||||||
manifestOptions: {
|
manifestOptions: {
|
||||||
display: 'standalone',
|
display: 'standalone',
|
||||||
|
},
|
||||||
|
workboxPluginMode: 'InjectManifest',
|
||||||
|
workboxOptions: {
|
||||||
|
swSrc: 'src/registerServiceWorker.js'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
configureWebpack: {
|
configureWebpack: {
|
||||||
plugins: [new GenerateSW({
|
plugins: [new GenerateSW({
|
||||||
clientsClaim: true,
|
clientsClaim: true,
|
||||||
skipWaiting: true,
|
skipWaiting: true,
|
||||||
|
cleanupOutdatedCaches: true,
|
||||||
navigateFallback: 'index.html',
|
navigateFallback: 'index.html',
|
||||||
})],
|
})],
|
||||||
output: {
|
output: {
|
||||||
|
Loading…
Reference in New Issue
Block a user