|
|
@ -24,7 +24,7 @@ const isPageChunk = (
|
|
|
|
|
|
|
|
|
|
|
|
export function createVitePressPlugin(
|
|
|
|
export function createVitePressPlugin(
|
|
|
|
root: string,
|
|
|
|
root: string,
|
|
|
|
{ configPath, aliases, markdown, themeDir, site }: SiteConfig,
|
|
|
|
{ configPath, alias, markdown, site }: SiteConfig,
|
|
|
|
ssr = false,
|
|
|
|
ssr = false,
|
|
|
|
pageToHashMap?: Record<string, string>
|
|
|
|
pageToHashMap?: Record<string, string>
|
|
|
|
): Plugin[] {
|
|
|
|
): Plugin[] {
|
|
|
@ -42,7 +42,7 @@ export function createVitePressPlugin(
|
|
|
|
|
|
|
|
|
|
|
|
config() {
|
|
|
|
config() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
alias: aliases,
|
|
|
|
alias,
|
|
|
|
define: {
|
|
|
|
define: {
|
|
|
|
__CARBON__: !!site.themeConfig.carbonAds?.carbon,
|
|
|
|
__CARBON__: !!site.themeConfig.carbonAds?.carbon,
|
|
|
|
__BSA__: !!site.themeConfig.carbonAds?.custom,
|
|
|
|
__BSA__: !!site.themeConfig.carbonAds?.custom,
|
|
|
|