1.4.0 • Published 3 months ago

@sws2apps/vite-plugin-package-version v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Vite Plugin to Display Package Version

DISCLAIMER: As the original package from smnhgn/vite-plugin-typescript-starter now supports ESM, we will be soon deprecating this package.

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 @sws2apps/vite-plugin-package-version

Usage

// vite.config.js
import { defineConfig } from 'vite';
import { loadVersion } from '@sws2apps/vite-plugin-package-version';

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

Note

This repo is taken from vite-plugin-package-version by Simon Haugen with only some minor edits. Thanks to Simon for the original repo.

1.4.0

3 months ago

1.2.0

6 months ago

1.3.0

6 months ago

1.1.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago