Files
Anthony Fu 4f5bb6820d Add 'docs/' from commit '4ee072e055e04965fad621e5941c6905ef2a2be0'
git-subtree-dir: docs
git-subtree-mainline: 48ec6b1309
git-subtree-split: 4ee072e055
2024-03-07 11:40:43 +01:00

613 B

Configure Vue

Slidev uses Vue 3 to render the application on the client side. You can extend the app to add custom plugins or configurations.

Create ./setup/main.ts with the following content:

import { defineAppSetup } from '@slidev/types'

export default defineAppSetup(({ app, router }) => {
  // Vue App
  app.use(YourPlugin)
})

This could also be used as the main entrance of your Slidev app to do some initializations before the app starts.

Learn more: Vue Application API.