Skip to content

Commit

Permalink
fix: support vite plugins provided via config.vite (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
fnlctrl authored Oct 7, 2021
1 parent df69b76 commit 4b76617
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function createVitePressPlugin(
ssr = false,
pageToHashMap?: Record<string, string>,
clientJSMap?: Record<string, string>
): Plugin[] {
) {
const {
srcDir,
configPath,
Expand Down Expand Up @@ -273,5 +273,5 @@ export function createVitePressPlugin(
}
}

return [vitePressPlugin, vuePlugin]
return [vitePressPlugin, vuePlugin, ...(userViteConfig?.plugins || [])]
}

0 comments on commit 4b76617

Please sign in to comment.