From 8de3126036a09d94add4274f6128950b0c35edf1 Mon Sep 17 00:00:00 2001 From: HalfSweet Date: Sat, 23 Mar 2024 14:22:26 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=9B=B4=E6=96=B0vuepress?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 18 +++++++++--------- src/.vuepress/config.ts | 6 ++++++ 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 878c2a2..169ec57 100644 --- a/package.json +++ b/package.json @@ -11,18 +11,18 @@ "docs:update-package": "pnpm dlx vp-update" }, "devDependencies": { - "@vuepress/client": "2.0.0-rc.0", - "vue": "^3.4.5", - "vuepress": "2.0.0-rc.0", - "vuepress-theme-hope": "2.0.0-rc.10" + "vue": "^3.4.21", + "vuepress": "2.0.0-rc.8", + "vuepress-theme-hope": "2.0.0-rc.31" }, "dependencies": { - "@vue/repl": "^3.2.0", - "chart.js": "^4.4.1", - "echarts": "^5.4.3", + "@vue/repl": "^4.1.0", + "@vuepress/bundler-vite": "2.0.0-rc.8", + "chart.js": "^4.4.2", + "echarts": "^5.5.0", "flowchart.ts": "^3.0.0", "katex": "^0.16.9", - "mermaid": "^10.6.1", - "reveal.js": "^5.0.4" + "mermaid": "^10.9.0", + "reveal.js": "^5.0.5" } } diff --git a/src/.vuepress/config.ts b/src/.vuepress/config.ts index 01aa135..a767f34 100644 --- a/src/.vuepress/config.ts +++ b/src/.vuepress/config.ts @@ -1,5 +1,6 @@ import { defineUserConfig } from "vuepress"; import theme from "./theme.js"; +import { viteBundler } from '@vuepress/bundler-vite' export default defineUserConfig({ base: "/", @@ -10,6 +11,11 @@ export default defineUserConfig({ theme, + bundler: viteBundler({ + viteOptions: {}, + vuePluginOptions: {}, + }), + // Enable it with pwa // shouldPrefetch: false, });