We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c91f55a commit 4b2b0f4Copy full SHA for 4b2b0f4
packages/@vuepress/plugin-pwa/lib/enhanceAppFile.js
@@ -16,6 +16,7 @@ export default ({ router, isServer }) => {
16
&& !isServer
17
&& SW_ENABLED) {
18
register(`${SW_BASE_URL}service-worker.js`, {
19
+ registrationOptions: { scope: `./${SW_BASE_URL}` },
20
ready () {
21
console.log('[vuepress:sw] Service worker is active.')
22
event.$emit('sw-ready')
0 commit comments