diff --git a/README.md b/README.md index 4db48aa..546b1b4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ + + + # vite-plugin-version [![NPM version](https://img.shields.io/npm/v/vite-plugin-version?color=a1b858&label=)](https://www.npmjs.com/package/vite-plugin-version) @@ -39,6 +42,16 @@ export default defineConfig({ ``` +You can also pass options to customize the behavior: + +```ts +versionPlugin({ + packageJsonPath: './custom/package.json', + field: 'version', + fileName: 'my-version.json', +}) +``` + ## License [MIT](./LICENSE) License © 2022 [YRM](https://github.com/yrming)