From 03423f13aa76453b4acea94dbd563a45a6413e4b Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 13 Mar 2023 16:58:44 +0800 Subject: [PATCH] docs: add example for vite / vue options --- docs/reference/site-config.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/reference/site-config.md b/docs/reference/site-config.md index e6c2d00c..b8881385 100644 --- a/docs/reference/site-config.md +++ b/docs/reference/site-config.md @@ -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: