mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-30 23:06:10 +03:00
Use clients claim and skip waiting to make sure that service worker takes over the window on the initial load (not just subsequent refreshes).
See https://developers.google.com/web/fundamentals/primers/service-workers/lifecycle.
This commit is contained in:
parent
5cd1443d17
commit
2e7a65bf1b
@ -190,6 +190,8 @@ function webpackOptions(production, routes, { debug, manifestConfig }) {
|
||||
}
|
||||
}),
|
||||
new GenerateSW({
|
||||
skipWaiting: true,
|
||||
clientsClaim: true,
|
||||
include: [
|
||||
/^index\.html$/,
|
||||
/\.js$/,
|
||||
|
Loading…
Reference in New Issue
Block a user