Browse Source

try/catch git describe call, fixes building without git present

bubble
Kyle Shockey 7 years ago
parent
commit
c81f51f696
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      make-webpack-config.js

+ 11
- 1
make-webpack-config.js View File

@@ -9,7 +9,17 @@ const {gitDescribeSync} = require('git-describe');
var loadersByExtension = require('./build-tools/loadersByExtension')

var pkg = require('./package.json')
const gitInfo = gitDescribeSync(__dirname)

let gitInfo

try {
gitInfo = gitDescribeSync(__dirname)
} catch(e) {
gitInfo = {
hash: 'noGit',
dirty: false
}
}

module.exports = function(options) {



Loading…
Cancel
Save