pnpm add vite-plugin-version-stamp -D
import versionStamp from 'vite-plugin-version-stamp'
export default defineConfig({
plugins: [versionStamp()],
})
-
globalName
: The global name of the project. -
filename
: The output filename. -
rewrite
: The rewrite function to transform the version stamp.-
options.name
: The name of the project, from package.json. -
options.version
: The version of the project, from package.json. -
options.shortHash
: The short git hash of the project. -
options.fullHash
: The full git hash of the project.
-
MIT License © 2024-PRESENT Croatia Lu