|
|
@ -21,6 +21,12 @@ import { staticDataPlugin } from './staticDataPlugin'
|
|
|
|
import { slash } from './utils/slash'
|
|
|
|
import { slash } from './utils/slash'
|
|
|
|
import { webFontsPlugin } from './webFontsPlugin'
|
|
|
|
import { webFontsPlugin } from './webFontsPlugin'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
declare module 'vite' {
|
|
|
|
|
|
|
|
interface UserConfig {
|
|
|
|
|
|
|
|
vitepress?: SiteConfig
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const hashRE = /\.(\w+)\.js$/
|
|
|
|
const hashRE = /\.(\w+)\.js$/
|
|
|
|
const staticInjectMarkerRE =
|
|
|
|
const staticInjectMarkerRE =
|
|
|
|
/\b(const _hoisted_\d+ = \/\*(?:#|@)__PURE__\*\/\s*createStaticVNode)\("(.*)", (\d+)\)/g
|
|
|
|
/\b(const _hoisted_\d+ = \/\*(?:#|@)__PURE__\*\/\s*createStaticVNode)\("(.*)", (\d+)\)/g
|
|
|
@ -131,7 +137,6 @@ export async function createVitePressPlugin(
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// @ts-ignore
|
|
|
|
|
|
|
|
vitepress: siteConfig
|
|
|
|
vitepress: siteConfig
|
|
|
|
})
|
|
|
|
})
|
|
|
|
return userViteConfig
|
|
|
|
return userViteConfig
|
|
|
|