Vite

@vuepress/bundler-vite

Vite bundler is provided by @vuepress/bundler-viteopen in new window package.

Usage

Install the bundler package:

npm i -D @vuepress/bundler-vite@next

Specify the bundler option in your config file:

import { viteBundler } from '@vuepress/bundler-vite'
import { defineUserConfig } from 'vuepress'

export default defineUserConfig({
  bundler: viteBundler({
    viteOptions: {},
    vuePluginOptions: {},
  }),
})

Options

viteOptions

vuePluginOptions