UNPKG

update-version-tip-webpack-plugin

Version:

版本更新提示

33 lines (25 loc) 686 B
# update version tip webpack plugin 版本更新插件 ## 使用 ```bash npm install --save-dev update-version-tip-webpack-plugin ``` 然后在webpack中配置,如下 ```javascript 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分钟