File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11var buildFile = require ( './build-file' )
22var runGitCommand = require ( './helpers/run-git-command' )
33
4- var commithashCommand = 'rev-parse HEAD'
5- var versionCommand = 'describe --always'
4+ var COMMITHASH_COMMAND = 'rev-parse HEAD'
5+ var VERSION_COMMAND = 'describe --always'
66
77function GitRevisionPlugin ( options ) {
88 this . gitWorkTree = options && options . gitWorkTree
99 this . lightweightTags = options && options . lightweightTags || false
10- this . commithashCommand = options && options . commithashCommand || commithashCommand
11- this . versionCommand = options && options . versionCommand || versionCommand
10+ this . commithashCommand = options && options . commithashCommand || COMMITHASH_COMMAND
11+ this . versionCommand = options && options . versionCommand || VERSION_COMMAND
1212}
1313
1414GitRevisionPlugin . prototype . apply = function ( compiler ) {
You can’t perform that action at this time.
0 commit comments