@flowinity/vite-version
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

vite-plugin-package-version

npm

Note: this plugin requires vite@^2.0.0-beta.69.

Load package version of your package.json into your vite environment.

Will inject import.meta.env.PACKAGE_VERSION with the version specified in your package.json.

Installation

npm i vite-plugin-package-version

Usage

// vite.config.js
import loadVersion from 'vite-plugin-package-version';

export default {
  plugins: [loadVersion()],
};

Package Sidebar

Install

npm i @flowinity/vite-version

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

3.82 kB

Total Files

7

Last publish

Collaborators

  • troplo