fix: support vite plugins provided via `config.vite` (#394)

pull/421/head
宋铄运 (Alan Song) 3 years ago committed by GitHub
parent df69b76427
commit 4b76617621
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -37,7 +37,7 @@ export function createVitePressPlugin(
ssr = false, ssr = false,
pageToHashMap?: Record<string, string>, pageToHashMap?: Record<string, string>,
clientJSMap?: Record<string, string> clientJSMap?: Record<string, string>
): Plugin[] { ) {
const { const {
srcDir, srcDir,
configPath, configPath,
@ -273,5 +273,5 @@ export function createVitePressPlugin(
} }
} }
return [vitePressPlugin, vuePlugin] return [vitePressPlugin, vuePlugin, ...(userViteConfig?.plugins || [])]
} }

Loading…
Cancel
Save