@zhangwj0520/vite-plugin-build-info
v0.0.2
Published
vite plugin for build info
Downloads
1
Readme
@zhangwj0520/vite-plugin-build-info
功能
将git信息插入到HTML中
安装
pnpm add -D @zhangwj0520/vite-plugin-build-info
使用
- 在
vite.config.ts
中配置
import react from '@vitejs/plugin-react'
import { createBuildInfoPlugin } from '@zhangwj0520/vite-plugin-build-info'
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [react(), createBuildInfoPlugin()],
})