mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-03 01:16:14 +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({
|
||||
include: [
|
||||
/^index\.html$/,
|
||||
/\.js$/,
|
||||
/content\.txt$/,
|
||||
/\.(?:png|gif|jpg|jpeg|svg)$/
|
||||
],
|
||||
exclude: [
|
||||
/android-chrome-.*\.png$/,
|
||||
/apple-touch-icon.*\.png/,
|
||||
/favicon-.*\.png/
|
||||
],
|
||||
navigateFallback: "index.html",
|
||||
swDest: "service-worker.js",
|
||||
runtimeCaching: [
|
||||
|
Loading…
Reference in New Issue
Block a user