0.0.6 • Published 1 year ago

vite-plugin-version v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

vite-plugin-version

NPM version

Get the version information from package.json, then automatically put the version file version.json in your project dist folder when packaging.

// package.json
{
  // ...
  "version": "0.0.1"
}
// dist/version.json
{
  "version": "0.0.1"
}

Install

npm i vite-plugin-version

Add plugin to your vite.config.ts:

// vite.config.ts
import { defineConfig } from 'vite'
import versionPlugin from 'vite-plugin-version'

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

License

MIT License © 2022 YRM

0.0.6

1 year ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.0

2 years ago