瀏覽代碼

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

bubble
Kyle Shockey 7 年之前
父節點
當前提交
c81f51f696
共有 1 個檔案被更改,包括 11 行新增1 行删除
  1. +11
    -1
      make-webpack-config.js

+ 11
- 1
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) {



Loading…
取消
儲存