Socket
Book a DemoInstallSign in
Socket

vite-plugin-version-stamp

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-version-stamp

_description_

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

vite-plugin-version-stamp

npm version npm downloads bundle JSDocs License

Install

pnpm add vite-plugin-version-stamp -D

Usage

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

FAQs

Package last updated on 19 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts