Skip to content

Commit

Permalink
修改config使得运行npm run build命令时,VitePress就会自动将pdf文件复制到public目录下
Browse files Browse the repository at this point in the history
  • Loading branch information
easygl1der committed Aug 3, 2024
1 parent 89a03df commit 14e20d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ export default defineConfig({
search: {
provider: 'local'
},
optimizeDeps: {
include: ['pdf'], // 将pdf文件添加到include数组中
exclude: [], // 排除其他不需要优化的文件类型
},
}
})

0 comments on commit 14e20d8

Please sign in to comment.