-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(web): patch package to make it work with nix
- Loading branch information
Showing
4 changed files
with
1,377 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
webpack.common.js | 10 +--------- | ||
1 file changed, 1 insertion(+), 9 deletions(-) | ||
|
||
diff --git a/webpack.common.js b/webpack.common.js | ||
index 61fe39483..b838552b1 100644 | ||
--- a/webpack.common.js | ||
+++ b/webpack.common.js | ||
@@ -20,15 +20,7 @@ const Assets = [ | ||
]; | ||
|
||
const DEV_MODE = process.env.NODE_ENV !== 'production'; | ||
-let COMMIT_SHA = ''; | ||
-try { | ||
- COMMIT_SHA = require('child_process') | ||
- .execSync('git describe --always --dirty') | ||
- .toString() | ||
- .trim(); | ||
-} catch (err) { | ||
- console.warn('Failed to get commit sha. Is git installed?', err); | ||
-} | ||
+const COMMIT_SHA = process.env.COMMIT_SHA; | ||
|
||
const NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/; | ||
|
||
-- | ||
2.46.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.