Vite
Vite bundler is provided by @vuepress/bundler-vite 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
Details:
Accepts all options of Vite.
Also see:
vuePluginOptions
Details:
Accepts all options of @vitejs/plugin-vue.
Also see: