@bit-ocean/bootstrap-animation
v0.0.50
Published
Universal bootstrap animation configuration.
Downloads
168
Readme
@bit-ocean/bootstrap-animation
Universal bootstrap animation configuration, support Vite plugin.
Installation
pnpm add -D @bit-ocean/bootstrap-animation
Configuration
Vite
// vite.config.ts
import { BootstrapAnimation } from '@bit-ocean/bootstrap-animation'
export default defineConfig({
plugins: [BootstrapAnimation()]
})
Next.js
// next.config.js
const { bootstrapLog } = require('@bit-ocean/bootstrap-animation')
bootstrapLog()
React Native
// metro.config.js
const { bootstrapLog } = require('@bit-ocean/bootstrap-animation')
bootstrapLog()
Rewrite default config
// vite.config.ts
import { BootstrapAnimation } from '@bit-ocean/bootstrap-animation'
export default defineConfig({
plugins: [
BootstrapAnimation({
author: ''
})
]
})