vite-plugin-version-stamp
v1.0.5
Published
_description_
Readme
vite-plugin-version-stamp
Install
pnpm add vite-plugin-version-stamp -DUsage
import versionStamp from 'vite-plugin-version-stamp'
export default defineConfig({
plugins: [versionStamp()],
})API
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.
License
MIT License © 2024-PRESENT Croatia Lu
