From c81f51f6967741a9e916021c8a5ed2e823d103fa Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Wed, 10 May 2017 22:03:04 -0700 Subject: [PATCH] try/catch git describe call, fixes building without git present --- make-webpack-config.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/make-webpack-config.js b/make-webpack-config.js index 572746a0..4a92c7d5 100644 --- a/make-webpack-config.js +++ b/make-webpack-config.js @@ -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) {