record-build-info-plugin
v1.0.6
Published
生一个record-build-info.json文件,包含项目基础信息(版本,分支,最新提交ID,打包时间)
Downloads
4
Readme
record-build-info-plugin
install
npm install record-build-info-plugin -D
yarn iadd record-build-info-plugin -D
pnpm install record-build-info-plugin -D
webpack 使用方式
- Enable plugin in your webpack.base.js file:
const RecordBuildInfoPlugin = require('record-build-info-plugin')
module.exports = {
plugins: [
new RecordBuildInfoPlugin('dist')
...
]
}
- If using vue-cli
const RecordBuildInfoPlugin = require('record-build-info-plugin')
configureWebpack: config => {
config.plugins = [
new RecordBuildInfoPlugin('dist'),
...]
}
{
barnch: 'build', // 分支
buildTime: '', // 打包时间
gitLast: 'Administrator' // 最后提交的记录
}