vue-update-refresher

0.1.2 • Public • Published

vue-update-refresher

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.

Project setup

yarn install

import VUpdateRefresherPlugin from 'vue-update-refresher';

Vue.use(VUpdateRefresherPlugin, {updateURLs: [...], appURL: "http://localhost.com:8080");

Compiles and hot-reloads for development

yarn serve

Lints and fixes files

yarn lint

License

MIT

See LICENSE

Readme

Keywords

Package Sidebar

Install

npm i vue-update-refresher

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

24.9 kB

Total Files

9

Last publish

Collaborators

  • bschumacher