File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ declare global {
1414 VITE_APIBASE ?: string ;
1515 VITE_ENABLE_RUNTIME_CONFIG ?: string ;
1616 VITE_BUILD_INFO ?: string ;
17+ VITE_BUILD_INFO_DETAIL ?: string ;
1718 }
1819}
1920
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const anyChanges = sh('git status --porcelain -uall').length > 0;
1414export default defineConfig ( {
1515 define : {
1616 'import.meta.env.VITE_BUILD_INFO' : JSON . stringify ( `构建版本 ${ headCommitCount } ${ anyChanges ? '*' : '' } ` ) ,
17- 'import.meta.env.VITE_BUILD_INFO_DETAIL' : JSON . stringify ( `${ anyChanges ? '有未提交的更改\n' : '' } branch: ${ headBranch } \ncommmit : ${ headSha } ` ) ,
17+ 'import.meta.env.VITE_BUILD_INFO_DETAIL' : JSON . stringify ( `${ anyChanges ? '有未提交的更改\n' : '' } branch: ${ headBranch } \ncommit : ${ headSha } ` ) ,
1818 } ,
1919 plugins : [ react ( ) ] ,
2020 css : {
You can’t perform that action at this time.
0 commit comments