docs: add example for vite / vue options

pull/2040/head
Evan You 3 years ago
parent 9aafc88d59
commit 03423f13aa

@ -404,12 +404,28 @@ interface MarkdownOptions extends MarkdownIt.Options {
Pass raw [Vite Config](https://vitejs.dev/config/) to internal Vite dev server / bundler.
```js
export default {
vite: {
// Vite config options
}
}
```
### vue
- Type: `import('@vitejs/plugin-vue').Options`
Pass raw [`@vitejs/plugin-vue` options](https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#options) to the internal plugin instance.
```js
export default {
vue: {
// @vitejs/plugin-vue options
}
}
```
## Build Hooks
VitePress build hooks allow you to add new functionality and behaviors to your website:

Loading…
Cancel
Save