Skip to content

Commit

Permalink
build: make BUILD_GIT_HASH stable.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardo2016x committed Jan 23, 2025
1 parent 5e95c3b commit 9190a67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/webpack.common.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ const isEnvDevelopment = process.env.NODE_ENV !== 'production';
const paths = require('./paths');

const BUILD_GIT_HASH = child_process
.execSync('git log --format="%h" -n 1')
.execSync('git rev-parse HEAD')
.toString()
.trim();
.trim()
.slice(0, 8);

const {
transformer: tsStyledComponentTransformer,
Expand Down

0 comments on commit 9190a67

Please sign in to comment.