Bundler
Although it is possible to create other bundler packages by community users, currently we only suggest to use the bundlers provided by VuePress team.
You can specify the name of the bundler to use in bundler option, or omit it because webpack is the default bundler. Then you can set via bundlerConfig option:
- JS
- TS
bundler: '@vuepress/webpack',
// webpack bundler options
},
Vite
npm install -D vuepress-vite
Next, you need to specify the name of the bundler to use in bundler option. Then you can set via bundlerConfig option:
- JS
- TS
import type { DefaultThemeOptions, ViteBundlerOptions } from 'vuepress-vite'
bundler: '@vuepress/vite',
bundlerConfig: {
// vite bundler options