diff --git a/src/node/plugin.ts b/src/node/plugin.ts index 6441ba74..038e6cde 100644 --- a/src/node/plugin.ts +++ b/src/node/plugin.ts @@ -12,8 +12,8 @@ import { import { APP_PATH, DIST_CLIENT_PATH, - resolveAliases, - SITE_DATA_REQUEST_PATH + SITE_DATA_REQUEST_PATH, + resolveAliases } from './alias' import { resolvePages, type SiteConfig } from './config' import { clearCache, createMarkdownToVueRenderFn } from './markdownToVue' @@ -141,7 +141,7 @@ export async function createVitePressPlugin( vitepress: siteConfig }) return userViteConfig - ? mergeConfig(userViteConfig, baseConfig) + ? mergeConfig(baseConfig, userViteConfig) : baseConfig },