Vite
Vite bundler is provided by @vuepress/bundler-viteopen in new window package. It is a dependency of the vuepress-viteopen in new window package, and you can also install it separately.
npm i -D @vuepress/bundler-vite@next
1
Options
Reference of vite bundler config, which can be set via bundlerConfig.
module.exports = {
// when using vuepress-vite package, you can omit this field
// because vite is the default bundler
bundler: '@vuepress/bundler-vite',
// bundler options
bundlerConfig: {
// see below
},
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
import type { ViteBundlerOptions } from '@vuepress/bundler-vite'
import { defineUserConfig } from '@vuepress/cli'
import type { DefaultThemeOptions } from '@vuepress/theme-default'
export default defineUserConfig<DefaultThemeOptions, ViteBundlerOptions>({
// when using vuepress-vite package, you can omit this field
// because vite is the default bundler
bundler: '@vuepress/bundler-vite',
// options for vite bundler
bundlerConfig: {
// see below
},
})
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
viteOptions
Details:
Accepts all options of Vite.
Also see:
vuePluginOptions
Details:
Accepts all options of @vitejs/plugin-vueopen in new window.
Also see: