Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 471 Bytes

README.md

File metadata and controls

25 lines (22 loc) · 471 Bytes

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])
  }
}