use local workbox to simplify csp

Co-Authored-By: NIan Reinhart Geiser <geiseri@geekcentral.pub>
上级 46207cfe
......@@ -68,6 +68,7 @@ module.exports = (options = {}) => merge(
})
].concat(prod ? [
new GenerateSW({
importWorkboxFrom: "local",
include: [cachePattern],
runtimeCaching: [{
urlPattern: cachePattern,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册