Commit c50edbc8 authored by Sparkf's avatar Sparkf 🏙️
Browse files

use local workbox file

parent 0aea887c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -15,6 +15,6 @@ jobs:
        ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
        TARGET_REPO: SUSTC/sustech-online-ng
        TARGET_BRANCH: gh-pages
        BUILD_SCRIPT: yarn && yarn docs:build && yarn docs:cname && sed -i -e 's/storage.googleapis.com\/workbox-cdn\/releases\/4.3.1/cdn.jsdelivr.net\/npm\/workbox-sw@4.3.1\/build/g' docs/.vuepress/dist/service-worker.js
        BUILD_SCRIPT: yarn && yarn docs:build && yarn docs:cname
        BUILD_DIR: docs/.vuepress/dist/
        TZ: Asia/Shanghai
+3 −0
Original line number Diff line number Diff line
@@ -50,6 +50,9 @@ module.exports = {
          message: "手册内容有更新!",
          buttonText: "刷新"
        },
        generateSWConfig: {
          importWorkboxFrom: 'local'
        }
      },
    ],
    [