KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
umi-plugin-git-version
★ 22
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
RemoteCamera
:
单反相机(佳能、尼康)PTP远程控制
spinamp-sdk
:
Build new experiences across the growing web3 music ecosystem
Xenoblade3
:
Switch Xenoblade 3 SaveDate Editor
Machine_Learning_GNSS_IMU_Integration
:
Google Smartphone Decimeter Challenge 2022: Using machine learning (ML) based adaptive positioning approach to estimate the positions of the smartphone.
rails-transactional-outbox
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
umi-plugin-git-version
?
Download (.md)
# umi-plugin-git-version [](https://npmjs.org/package/umi-plugin-git-version) [](https://npmjs.org/package/umi-plugin-git-version) 此功能基于 [git-revision-webpack-plugin](https://github.com/pirelenito/git-revision-webpack-plugin)封装 ## 使用方法 1. 安装 ```bash npm install umi-plugin-git-version --save # or yarn add umi-plugin-git-version ``` 2. 使用 在umi@4中使用 ```javascript // .umirc.js 或者 .umirc.ts // 添加 export default { plugins: ['umi-plugin-git-version'], } ``` 在umi@3中使用 ```javascript // do nothing, umi@3 will scan your node_modules and add to plugins ``` 3. 在页面中使用变量 ```javascript __VERSION__: 当前版本号 __COMMIT_HASH__: 当前提交hash值 __BRANCH__: 当前提交分支 __LAST_COMMIT_DATETIME__: 最后提交时间 ``` ## LICENSE MIT