Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 953 Bytes

README.md

File metadata and controls

57 lines (40 loc) · 953 Bytes

@bit-ocean/bootstrap-animation

npm

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