A callback to force a refresh to the specified urls to update.
Have a timer running that calls an api endpoint with version information and call window.appWillUpdate() if there's an update needed.
It's best to do that on your html document rather than inside the VueApp, however if that reload process fails for whatever reason or there isn't one after a few tries the VueApp will refresh the resources.
Reads meta value of vue-app-version to determine current version.
yarn install
import VUpdateRefresherPlugin from 'vue-update-refresher';
Vue.use(VUpdateRefresherPlugin, {updateURLs: [...], appURL: "http://localhost.com:8080");
yarn serve
yarn lint
MIT
See LICENSE