mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-06 22:39:41 +03:00
Only include set of known extensions and files for pre-caching, and exclude icons.
This commit is contained in:
parent
116d8a6996
commit
9065b08320
@ -145,8 +145,18 @@ function webpackOptions(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
||||||
new GenerateSW({
|
new GenerateSW({
|
||||||
|
include: [
|
||||||
|
/^index\.html$/,
|
||||||
|
/\.js$/,
|
||||||
|
/content\.txt$/,
|
||||||
|
/\.(?:png|gif|jpg|jpeg|svg)$/
|
||||||
|
],
|
||||||
|
exclude: [
|
||||||
|
/android-chrome-.*\.png$/,
|
||||||
|
/apple-touch-icon.*\.png/,
|
||||||
|
/favicon-.*\.png/
|
||||||
|
],
|
||||||
navigateFallback: "index.html",
|
navigateFallback: "index.html",
|
||||||
swDest: "service-worker.js",
|
swDest: "service-worker.js",
|
||||||
runtimeCaching: [
|
runtimeCaching: [
|
||||||
|
Loading…
Reference in New Issue
Block a user