Skip to content

生一个json文件,包含项目基础信息(版本,分支,最新提交ID,打包时间

Notifications You must be signed in to change notification settings

laibin-wang/recordBuildInfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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'           // 最后提交的记录
}

About

生一个json文件,包含项目基础信息(版本,分支,最新提交ID,打包时间

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published