vite-plugin-git-commit-hash
a vite plugin that gets the latest git commit hash
a vite plugin that gets the latest git commit hash
This Vite plugin automatically injects environment variables for the package version, current git branch name, build date, and the last commit's short hash into your Vite project. This can be particularly useful for versioning, build tracking, and display