We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【@plugin-web-update-notification/vite'】1.7.0
import { webUpdateNotice } from '@plugin-web-update-notification/vite'
webUpdateNotice({ versionType: 'custom', customVersion: '1.0.1', // default: '0.0.0 logVersion: true, checkInterval: 0, notificationProps: { title: "📢 system update", description: "System update, please refresh the page", buttonText: "refresh", dismissButtonText: "dismiss", }, notificationConfig: { primaryColor: "red", secondaryColor: "blue", placement: "topRight", }, })
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
vuejs/vitepress#3314
这是一个vitepress 的问题,pluginWebUpdateNotice 内部使用了transformIndexHtml 这个hook。
pluginWebUpdateNotice
transformIndexHtml
但是在vitepress 使用 vite 构建文档时,不会调用transformIndexHtml。建议等待官方修复后,升级vitepress 至最新版本
No branches or pull requests
【@plugin-web-update-notification/vite'】1.7.0
import { webUpdateNotice } from '@plugin-web-update-notification/vite'
webUpdateNotice({
versionType: 'custom',
customVersion: '1.0.1', // default: '0.0.0
logVersion: true,
checkInterval: 0,
notificationProps: {
title: "📢 system update",
description: "System update, please refresh the page",
buttonText: "refresh",
dismissButtonText: "dismiss",
},
notificationConfig: {
primaryColor: "red",
secondaryColor: "blue",
placement: "topRight",
},
})
The text was updated successfully, but these errors were encountered: