Immediately Load Latest App
This commit is contained in:
parent
86d59f4e6f
commit
f7d19e62fd
|
@ -20,7 +20,8 @@ if (process.env.NODE_ENV === 'production') {
|
||||||
console.log('New content is downloading.')
|
console.log('New content is downloading.')
|
||||||
},
|
},
|
||||||
updated() {
|
updated() {
|
||||||
console.log('New content is available; please refresh.')
|
console.log('New content is available.');
|
||||||
|
window.location.reload();
|
||||||
},
|
},
|
||||||
offline() {
|
offline() {
|
||||||
console.log('No internet connection found. App is running in offline mode.')
|
console.log('No internet connection found. App is running in offline mode.')
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
publicPath: '',
|
publicPath: '',
|
||||||
productionSourceMap: true
|
productionSourceMap: true,
|
||||||
|
pwa: {
|
||||||
|
workboxOptions: {
|
||||||
|
skipWaiting: true
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user