From c6b300a6be67d1b9c68d1d98c5fbba5198ef3155 Mon Sep 17 00:00:00 2001 From: Jesse Mazzella Date: Fri, 27 Jan 2023 10:54:23 -0800 Subject: [PATCH] fix: try __dirname --- .webpack/webpack.common.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.webpack/webpack.common.js b/.webpack/webpack.common.js index 3f5bd3112e..1503760a0b 100644 --- a/.webpack/webpack.common.js +++ b/.webpack/webpack.common.js @@ -22,18 +22,19 @@ let gitBranch = "error-retrieving-branch"; try { gitRevision = require("child_process") .execSync("git rev-parse HEAD", { - cwd: projectRootDir + cwd: __dirname }) .toString() .trim(); gitBranch = require("child_process") .execSync("git rev-parse --abbrev-ref HEAD", { - cwd: projectRootDir + cwd: __dirname }) .toString() .trim(); } catch (err) { - console.warn(err); + console.error(err); + // console.warn(err); }