Skip to content

Commit

Permalink
Issue a warning when building on node < 0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeezley committed May 9, 2016
1 parent 3cd7089 commit 85fa552
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ var webpack = require('webpack');
var exec = require('child_process').execSync;
var sha = '';

if (!exec) {
console.warn('Node 0.12 or greater is required for detecting the git hash.');
}

try {
sha = exec('git rev-parse HEAD', {cwd: __dirname}).toString().trim();
} catch (e) {
Expand Down

0 comments on commit 85fa552

Please sign in to comment.