Only include set of known extensions and files for pre-caching, and exclude icons.

This commit is contained in:
Dillon Kearns 2019-08-19 20:06:23 -07:00
parent 116d8a6996
commit 9065b08320

View File

@ -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: [