Skip to main content

Vite

Less than 1 minute

Vite

@vuepress/bundler-vite

Vite bundler is provided by @vuepress/bundler-viteopen in new window package. It is a dependency of the vuepressopen in new window 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

vuePluginOptions