0.0.6 • Published 2 months ago

@zhangwj0520/vite-plugin v0.0.6

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

@zhangwj0520/vite-plugin

功能

将git信息插入到HTML中

安装

pnpm add -D @zhangwj0520/vite-plugin

使用

  • vite.config.ts 中配置
import react from '@vitejs/plugin-react'
import { createBuildInfoPlugin } from '@zhangwj0520/vite-plugin'
import { defineConfig } from 'vite'


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

生成IconSet

export default defineConfig({
  plugins: [
    addIconSet({
      path: path.resolve(__dirname, './src/assets/icons'),
      prefix: 'custom'
    })
  ],
})