Vite
Vite bundler is provided by @vuepress/bundler-vite package. It is a dependency of the vuepress package, and you can also install it separately.
npm i -D @vuepress/bundler-vite@next
Options
Reference of vite bundler options:
import { viteBundler } from '@vuepress/bundler-vite'
import { defineUserConfig } from '@vuepress/cli'
export default defineUserConfig({
bundler: viteBundler({
viteOptions: {},
vuePluginOptions: {},
}),
})
viteOptions
Details:
Accepts all options of Vite.
Also see:
vuePluginOptions
Details:
Accepts all options of @vitejs/plugin-vue.
Also see: