Vite Plugin Version Mark screenshot

Vite Plugin Version Mark

Author Avatar Theme by Zhongxuyang
Updated: 5 Aug 2025
71 Stars

Automatically use `package version` / `git commit` / `custom` to be inserted into your project as a unique identifier for the project version.

Categories

Overview

The vite-plugin-version-mark is an innovative tool designed for developers working with Vite and Nuxt applications. This plugin simplifies the process of injecting version information directly into your application, ensuring that versioning is both automated and hassle-free. Whether it’s using the version from your package.json, git commit SHA, or even custom commands, this plugin enhances your workflow by providing essential version details in various formats that can be utilized throughout your application.

As applications grow in complexity, maintaining clear and accessible version information becomes crucial. With the latest updates, including multi-command support, this plugin stands out as an essential asset for developers looking to streamline their version management processes. Get ready to take your application’s versioning to the next level with this powerful tool.

Features

  • Multiple Version Sources: Automatically injects version information from package.json, git commit SHA, or custom commands into your application.
  • Enhanced Flexibility: Supports executing multiple git commands, allowing for customizable version strings.
  • Console Output: Displays the application version directly in the console for quick checks during development.
  • Global Variables: Makes version information accessible globally within your application.
  • Meta Tags Inclusion: Inserts version details into HTML meta tags for better visibility and SEO optimization.
  • Short SHA Option: Use the short version of git commit SHA for cleaner version representation.
  • Easy Installation: Simple setup for Vite and Nuxt3+, enabling developers to quickly integrate into their projects.
  • Custom Commands Support: Define your own commands to retrieve versions in custom formats, promoting creativity in version string creation.