vite-plugin-minverversion
v1.0.4
Published
Automatically gets the `minver` version of the project and adds to Vite's define
Downloads
196
Maintainers
Readme
vite-plugin-minverversion
Automatically gets the minver
version of the project and adds to Vite's define.
Install
npm i vite-plugin-minverversion --save-dev
Usage
// vite.config.js
import minverVersion from 'vite-plugin-minverversion'
export default {
plugins: [
minverVersion()
]
}
TypeScript support
// vite-env.d.ts
/// <reference types="vite/client" />
declare const MINVER_VERSION: string;