notify-update-tools
v1.0.1
Published
[](https://www.npmjs.com/package/notify-update) [](https://www.npmjs.com/package/notify-update) [;Options
compareVersionLoop accepts the following options:
version: The current version of the application.remoteUrl: The URL to fetch the latest version information. Defaults to"/release-version.json".loopTime: The interval (in milliseconds) to check for a new version. Defaults to2000.lang: The language for the notification message. Defaults to"zh".langDataObj: An object containing translated message for each language.appId: A string used to identify the application. Useful when you have multiple applications on the same page.
Note
Make sure to inject the latest version interception before building, use npm script's prebuild to intercept. The interception command is "prebuild": "xxx", generate a release-version.json file, and it's recommended to use raiden-version.
"prebuild": "raiden version build --target './public'"License
This project is released under the MIT license - see the LICENSE file for details.
