升级vuepress

This commit is contained in:
linpeilie 2024-06-12 11:59:05 +08:00
parent b020a42732
commit 5f7860447f
2 changed files with 12 additions and 10 deletions

View File

@ -2,7 +2,8 @@ import { defineUserConfig } from "vuepress";
import type { DefaultThemeOptions } from "vuepress";
import recoTheme from "vuepress-theme-reco";
import { themeConfig } from './config/index'
import { umamiAnalyticsPlugin } from 'vuepress-plugin-umami-analytics'
import { sitemapPlugin } from '@vuepress/plugin-sitemap'
import { webpackBundler } from '@vuepress/bundler-webpack'
export default defineUserConfig({
locales: {
@ -37,9 +38,9 @@ export default defineUserConfig({
}
},
plugins: [
umamiAnalyticsPlugin({
id: '50be7a94-e1d7-4d49-a8db-67b17acaa0b3',
src: 'https://114.115.147.1/script.js'
})
]
sitemapPlugin({
hostname: 'mapstruct.plus'
}),
],
bundler: webpackBundler(),
});

View File

@ -12,9 +12,10 @@
"docs:clean-dev": "vuepress dev docs --clean-cache"
},
"dependencies": {
"vue": "3.3.11",
"vuepress": "2.0.0-rc.0",
"vuepress-plugin-umami-analytics": "^1.7.0",
"vuepress-theme-reco": "2.0.0-rc.1"
"vue": "^3.4.27",
"vuepress": "2.0.0-rc.12",
"vuepress-theme-reco": "2.0.0-rc.13",
"@vuepress/bundler-webpack": "2.0.0-rc.12",
"@vuepress/plugin-sitemap": "2.0.0-rc.12"
}
}