配置 umami
This commit is contained in:
@@ -2,6 +2,7 @@ import { defineUserConfig } from 'vuepress'
|
|||||||
import { plumeTheme } from 'vuepress-theme-plume'
|
import { plumeTheme } from 'vuepress-theme-plume'
|
||||||
import { viteBundler } from '@vuepress/bundler-vite'
|
import { viteBundler } from '@vuepress/bundler-vite'
|
||||||
import { commentPlugin } from '@vuepress/plugin-comment'
|
import { commentPlugin } from '@vuepress/plugin-comment'
|
||||||
|
import { umamiAnalyticsPlugin } from '@vuepress/plugin-umami-analytics'
|
||||||
|
|
||||||
export default defineUserConfig({
|
export default defineUserConfig({
|
||||||
base: '/',
|
base: '/',
|
||||||
@@ -78,5 +79,11 @@ export default defineUserConfig({
|
|||||||
meta: ['nick'],
|
meta: ['nick'],
|
||||||
requiredMeta: ['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
15
package-lock.json
generated
@@ -13,6 +13,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vuepress/bundler-vite": "2.0.0-rc.24",
|
"@vuepress/bundler-vite": "2.0.0-rc.24",
|
||||||
|
"@vuepress/plugin-umami-analytics": "^2.0.0-rc.112",
|
||||||
"artalk": "^2.9.1",
|
"artalk": "^2.9.1",
|
||||||
"http-server": "^14.1.1",
|
"http-server": "^14.1.1",
|
||||||
"typescript": "^5.9.2",
|
"typescript": "^5.9.2",
|
||||||
@@ -2801,6 +2802,20 @@
|
|||||||
"vuepress": "2.0.0-rc.24"
|
"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": {
|
"node_modules/@vuepress/plugin-watermark": {
|
||||||
"version": "2.0.0-rc.112",
|
"version": "2.0.0-rc.112",
|
||||||
"resolved": "https://registry.npmmirror.com/@vuepress/plugin-watermark/-/plugin-watermark-2.0.0-rc.112.tgz",
|
"resolved": "https://registry.npmmirror.com/@vuepress/plugin-watermark/-/plugin-watermark-2.0.0-rc.112.tgz",
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vuepress/bundler-vite": "2.0.0-rc.24",
|
"@vuepress/bundler-vite": "2.0.0-rc.24",
|
||||||
|
"@vuepress/plugin-umami-analytics": "^2.0.0-rc.112",
|
||||||
"artalk": "^2.9.1",
|
"artalk": "^2.9.1",
|
||||||
"http-server": "^14.1.1",
|
"http-server": "^14.1.1",
|
||||||
"typescript": "^5.9.2",
|
"typescript": "^5.9.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user