配置 umami

This commit is contained in:
2025-10-01 05:34:17 -04:00
parent cb3747d38c
commit 44689736d5
3 changed files with 23 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ import { defineUserConfig } from 'vuepress'
import { plumeTheme } from 'vuepress-theme-plume'
import { viteBundler } from '@vuepress/bundler-vite'
import { commentPlugin } from '@vuepress/plugin-comment'
import { umamiAnalyticsPlugin } from '@vuepress/plugin-umami-analytics'
export default defineUserConfig({
base: '/',
@@ -78,5 +79,11 @@ export default defineUserConfig({
meta: ['nick'],
requiredMeta: ['nick']
}),
umamiAnalyticsPlugin({
id: 'a4f0ca65-2da6-4e6b-a01b-f3b3157d05a3',
link: 'http://umami.simengweb.com/script.js',
domains: ['https://notes.simengweb.com'],
cache: true
}),
],
})

15
package-lock.json generated
View File

@@ -13,6 +13,7 @@
},
"devDependencies": {
"@vuepress/bundler-vite": "2.0.0-rc.24",
"@vuepress/plugin-umami-analytics": "^2.0.0-rc.112",
"artalk": "^2.9.1",
"http-server": "^14.1.1",
"typescript": "^5.9.2",
@@ -2801,6 +2802,20 @@
"vuepress": "2.0.0-rc.24"
}
},
"node_modules/@vuepress/plugin-umami-analytics": {
"version": "2.0.0-rc.112",
"resolved": "https://registry.npmmirror.com/@vuepress/plugin-umami-analytics/-/plugin-umami-analytics-2.0.0-rc.112.tgz",
"integrity": "sha512-Y0ZTdmX8oayiz+y1NbJ6+LyHXV9IoP4lBu+lwSNK+Y7fo+KE96grOzvjeYJK4DzNFYjuNk+KqR8W1DgOih6anw==",
"dev": true,
"license": "MIT",
"dependencies": {
"@vuepress/helper": "2.0.0-rc.112",
"vue": "^3.5.17"
},
"peerDependencies": {
"vuepress": "2.0.0-rc.24"
}
},
"node_modules/@vuepress/plugin-watermark": {
"version": "2.0.0-rc.112",
"resolved": "https://registry.npmmirror.com/@vuepress/plugin-watermark/-/plugin-watermark-2.0.0-rc.112.tgz",

View File

@@ -16,6 +16,7 @@
},
"devDependencies": {
"@vuepress/bundler-vite": "2.0.0-rc.24",
"@vuepress/plugin-umami-analytics": "^2.0.0-rc.112",
"artalk": "^2.9.1",
"http-server": "^14.1.1",
"typescript": "^5.9.2",