From 14e20d83ec53da0d9afd744593e5edc4b8ec4e60 Mon Sep 17 00:00:00 2001 From: easyglider Date: Sun, 4 Aug 2024 01:12:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9config=E4=BD=BF=E5=BE=97?= =?UTF-8?q?=E8=BF=90=E8=A1=8Cnpm=20run=20build=E5=91=BD=E4=BB=A4=E6=97=B6?= =?UTF-8?q?=EF=BC=8CVitePress=E5=B0=B1=E4=BC=9A=E8=87=AA=E5=8A=A8=E5=B0=86?= =?UTF-8?q?pdf=E6=96=87=E4=BB=B6=E5=A4=8D=E5=88=B6=E5=88=B0public=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/.vitepress/config.mjs b/docs/.vitepress/config.mjs index 66dbee4..0613af1 100644 --- a/docs/.vitepress/config.mjs +++ b/docs/.vitepress/config.mjs @@ -101,6 +101,10 @@ export default defineConfig({ search: { provider: 'local' }, + optimizeDeps: { + include: ['pdf'], // 将pdf文件添加到include数组中 + exclude: [], // 排除其他不需要优化的文件类型 + }, } })