diff --git a/webpack.config.js b/webpack.config.js index c711acd7c..7ff7fe1b8 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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()) }) ] };