use local workbox to simplify csp

Co-Authored-By: Ian Reinhart Geiser <geiseri@geekcentral.pub>
This commit is contained in:
Dean Sheather 2019-05-27 23:27:30 -04:00
parent 46207cfe10
commit 9b5a43e4bd
No known key found for this signature in database
GPG Key ID: B574DF7CAFDCFAA3

View File

@ -68,6 +68,7 @@ module.exports = (options = {}) => merge(
}) })
].concat(prod ? [ ].concat(prod ? [
new GenerateSW({ new GenerateSW({
importWorkboxFrom: "local",
include: [cachePattern], include: [cachePattern],
runtimeCaching: [{ runtimeCaching: [{
urlPattern: cachePattern, urlPattern: cachePattern,