Add registration options to service worker

This commit is contained in:
cristij 2019-02-12 14:10:58 +02:00
parent bf755534b4
commit 8f815716af

View File

@ -4,6 +4,9 @@ import { register } from 'register-service-worker'
if (process.env.NODE_ENV === 'production') {
register(`${process.env.BASE_URL}service-worker.js`, {
registrationOptions: {
scope: process.env.BASE_URL,
},
ready () {
console.log(
'App is being served from cache by a service worker.\n' +