Skip to content

Commit

Permalink
fix build when not in git repo (mattermost#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccbrown authored and GoldUniform committed Mar 9, 2018
1 parent e3ecc56 commit 8c6e8f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ var config = {
children: true,
}),
new webpack.DefinePlugin({
COMMIT_HASH: JSON.stringify(childProcess.execSync('git rev-parse HEAD').toString()),
COMMIT_HASH: JSON.stringify(childProcess.execSync('git rev-parse HEAD || echo dev').toString()),
}),
extractCSS,
extractSCSS,
Expand Down

0 comments on commit 8c6e8f4

Please sign in to comment.