From f2a6e64a8613378ebd6fb5b92f7bb6997e3d6334 Mon Sep 17 00:00:00 2001 From: camera-2018 <2907618001@qq.com> Date: Thu, 2 Nov 2023 15:20:03 +0800 Subject: [PATCH] fix: webfont-dl --- .vitepress/config.js | 9 ++++++++- package.json | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.vitepress/config.js b/.vitepress/config.js index 2f3ac63..576e743 100644 --- a/.vitepress/config.js +++ b/.vitepress/config.js @@ -88,7 +88,14 @@ export default withMermaid({ VueMacros(), webfontDownload([ 'https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&family=Noto+Sans+Mono:wght@400;600;700&family=Noto+Sans+SC:wght@400;600;700&display=swap' - ]), + ], + { + injectAsStyleTag: true, + minifyCss: true, + async: true, + cache: true, + proxy: false, + }), ], resolve: { alias: [ diff --git a/package.json b/package.json index 0601a2a..7929c99 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "markdown-it-mathjax3": "^4.3.2", "mermaid": "^10.6.0", "unplugin-vue-macros": "^2.6.2", - "vite-plugin-webfont-dl": "^3.7.6", + "vite-plugin-webfont-dl": "^3.8.0", "vitepress": "^1.0.0-rc.24", "vitepress-plugin-mermaid-xyxsw": "^2.12.13" }