Skip to content

Commit

Permalink
add GITBRANCH support
Browse files Browse the repository at this point in the history
  • Loading branch information
mcheung610 committed Aug 31, 2022
1 parent ebdef2c commit b3a9aeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export default (options: ViteGitRevisionPlugin): Plugin => {
return {
name: 'vite:git-revision',
config(config:any) {
config.define.VERSION = JSON.stringify(runGitCommand(options.gitWorkTree,options.versionCommand))
config.define.BRANCH = JSON.stringify(runGitCommand(options.gitWorkTree,options.branchCommand))
config.define.GITVERSION = JSON.stringify(runGitCommand(options.gitWorkTree,options.versionCommand))
config.define.GITBRANCH = JSON.stringify(runGitCommand(options.gitWorkTree,options.branchCommand))
}
};
};

0 comments on commit b3a9aeb

Please sign in to comment.