vite-plugin-version-stamp
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i vite-plugin-version-stamp

Weekly Downloads

27

Version

1.0.3

License

MIT

Unpacked Size

14 kB

Total Files

8

Last publish

Collaborators

  • wuli.croatia