Skip to content

Latest commit

 

History

History

bootstrap-animation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@raipiot-infra/bootstrap-animation

npm

raipiot infra 启动动画模块,用于在启动项目时,命令行打印品牌动画,支持 Vite 插件。

安装

pnpm add -D @raipiot-infra/bootstrap-animation

配置

Vite

// vite.config.ts
import { BootstrapAnimation } from '@raipiot-infra/bootstrap-animation'

export default defineConfig({
  plugins: [BootstrapAnimation()]
})

Next.js

// next.config.js
const { bootstrapLog } = require('@raipiot-infra/bootstrap-animation')

bootstrapLog()

React Native

// metro.config.js
const { bootstrapLog } = require('@raipiot-infra/bootstrap-animation')

bootstrapLog()

重写默认配置

// vite.config.ts
import { BootstrapAnimation } from '@raipiot-infra/bootstrap-animation'

export default defineConfig({
  plugins: [
    BootstrapAnimation({
      author: ''
    })
  ]
})