@zhangwj0520/vite-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

@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'
    })
  ],
})

Readme

Keywords

none

Package Sidebar

Install

npm i @zhangwj0520/vite-plugin

Weekly Downloads

2

Version

0.0.6

License

MIT

Unpacked Size

14.1 kB

Total Files

16

Last publish

Collaborators

  • luffy0520