0.0.6 • Published 1 year ago
@raipiot-infra/bootstrap-animation v0.0.6
@raipiot-infra/bootstrap-animation
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: ''
})
]
})