chore: 添加extraWatchFiles配置

This commit is contained in:
xugaoyi 2022-03-03 09:31:26 +08:00
parent 7208263eb6
commit b902f9d5c5
1 changed files with 8 additions and 3 deletions

View File

@ -9,8 +9,8 @@ import baiduCode from './config/baiduCode' // 百度统计hm码
import htmlModules from './config/htmlModules' // 自定义插入的html块
export default defineConfig4CustomTheme<VdoingThemeConfig>({
theme: 'vdoing', // 使用npm包主题
// theme: resolve(__dirname, '../../vdoing'), // 使用本地主题
// theme: 'vdoing', // 使用npm包主题
theme: resolve(__dirname, '../../vdoing'), // 使用本地主题
locales: {
'/': {
@ -325,5 +325,10 @@ export default defineConfig4CustomTheme<VdoingThemeConfig>({
markdown: {
lineNumbers: true
}
},
// 监听文件变化并重新构建
extraWatchFiles: [
'.vuepress/config.ts'
]
})