Explorar el Código

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

bubble
Kyle Shockey hace 7 años
padre
commit
c81f51f696
Se han modificado 1 ficheros con 11 adiciones y 1 borrados
  1. +11
    -1
      make-webpack-config.js

+ 11
- 1
make-webpack-config.js Ver fichero

@@ -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) {



Cargando…
Cancelar
Guardar