npm install -g workbox-cli. The introduction of the root workbox-sw.dev.v2.0.0.js file. Create src/sw.js , configure the cache rule of service-worker
確定! 回上一頁