No description
__tests__ | ||
demo | ||
src | ||
.gitignore | ||
.prettierrc | ||
jest.config.js | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json | ||
yarn-error.log | ||
yarn.lock |
vite-plugin-package-version
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()],
};