fix: respect user vue alias

close #1065
pull/2070/head
Evan You 2 years ago
parent 185e756b2d
commit 63f33d2895

@ -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
},

Loading…
Cancel
Save