use local workbox to simplify csp

Co-Authored-By: Ian Reinhart Geiser <geiseri@geekcentral.pub>
This commit is contained in:
Dean Sheather
2019-07-07 15:13:16 +10:00
co-authored by Ian Reinhart Geiser
parent 46207cfe10
commit 9b5a43e4bd
+1
View File
@@ -68,6 +68,7 @@ module.exports = (options = {}) => merge(
})
].concat(prod ? [
new GenerateSW({
importWorkboxFrom: "local",
include: [cachePattern],
runtimeCaching: [{
urlPattern: cachePattern,