add service worker

This commit is contained in:
MaysWind
2021-02-28 20:37:53 +08:00
parent 7f47ffe6c2
commit f34471839c
7 changed files with 419 additions and 24 deletions
+4
View File
@@ -56,6 +56,10 @@ export default {
pushStateAnimate: false,
iosSwipeBackAnimateShadow: false,
mdSwipeBackAnimateShadow: false
},
serviceWorker: {
path: self.$settings.isProduction() ? './sw.js' : undefined,
scope: '/',
}
}
}