From 6f7975d783125c374e675404bc2c5354c0a2b3a0 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Thu, 3 Aug 2023 21:54:26 +0000 Subject: [PATCH] Update webpack.config.js --- webpack.config.js | 6 ++++++ 1 file changed, 6 insertions(+) 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()) }) ] };