1.0.2 • Published 3 years ago

update-version-tip-webpack-plugin v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

update version tip webpack plugin

版本更新插件

使用

npm install --save-dev update-version-tip-webpack-plugin

然后在webpack中配置,如下

var GitRevisionPlugin = require('update-version-tip-webpack-plugin')

module.exports = {
  plugins: [
    new GitRevisionPlugin({
        allowUrl: string,
        requestUrl: string,
        buildNewFile: boolean,
        timeOut: number,
    })
  ]
}

其中

  • allowUrl:路由关键字 存在此关键字的路由才会执行获取版本号的轮询
  • requestUrl:请求静态版本文件的路径
  • buildNewFile:是否构建新版本文件
  • timeOut:轮询间隔,默认10分钟