【发布时间】:2020-06-14 20:26:57
【问题描述】:
正如我们现在在工作箱的第 5 版中,importWorkboxFrom 配置已被删除,但如果我们使用 injectManifest,我们应该如何在本地导入工作箱?
将importScripts 与https://storage.googleapis.com/workbox-cdn/releases/5.0.0/workbox-sw.js 一起使用是唯一的方法吗?
docs 说 generateSW 默认使用本地导入,但 injectManifest 呢?
https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-v4#build_tool_option_overhaul
【问题讨论】:
标签: workbox sw-precache workbox-webpack-plugin