Skip to content

Commit 05430e4

Browse files
authoredJan 20, 2023
feat(build): expose vitepress site config to vite plugins (#1822)
1 parent fe52fa3 commit 05430e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/node/plugin.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ export async function createVitePressPlugin(
129129
searchForWorkspaceRoot(process.cwd())
130130
]
131131
}
132-
}
132+
},
133+
// @ts-ignore
134+
vitepress: siteConfig
133135
})
134136
return userViteConfig
135137
? mergeConfig(userViteConfig, baseConfig)

0 commit comments

Comments
 (0)
Please sign in to comment.