Skip to content

gjkh0902/spa-update-notice

Repository files navigation

spa-update-notice

Useage

yarn add spa-update-notice -S
//vue.config.js
const SpaUpdate = require('spa-update-notice')
/*
  @options 可为空
  demo:
  options = {
    isNeedNotice: true,//提示用户更新,默认false
    versionFileName: 'test.txt' //生成的版本文件命名,默认update_popup_version.txt
  } 
*/
const config = {
  chainWebpack: config => {
    config.plugin('spa-update-notice').use(SpaUpdate, [options])
  }
}

About

单页面应用,系统通知

Resources

License

Stars

Watchers

Forks

Packages

No packages published