Skip to content

Commit

Permalink
Update webpack.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Aug 3, 2023
1 parent e62727a commit 6f7975d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ module.exports = {
plugins: [
new webpack.DefinePlugin({
VERSION: JSON.stringify(process.env.npm_package_version)
}),
new webpack.DefinePlugin({
COMMIT_DATE: JSON.stringify(require('child_process').execSync('git log -1 --format=%cd').toString().trim())
}),
new webpack.DefinePlugin({
COMMIT_HASH: JSON.stringify(require('child_process').execSync('git rev-parse --short HEAD').toString().trim())
})
]
};

0 comments on commit 6f7975d

Please sign in to comment.