mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 15:00:01 -04:00
fix: make commit hash short version
This commit is contained in:
parent
9ea9863ced
commit
7c9a9e5441
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ export default defineConfig({
|
|||
}),
|
||||
new rspack.DefinePlugin({
|
||||
COMMITHASH: JSON.stringify(
|
||||
execSync("git rev-parse HEAD", { encoding: "utf-8" }).replace(
|
||||
execSync("git rev-parse --short HEAD", { encoding: "utf-8" }).replace(
|
||||
/\r?\n|\r/g,
|
||||
""
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue