Skip to content
New issue

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

vitepress项目配置了该插件也不支持,打包后的index.html没有pluginWebUpdateNotice相关的引入 #56

Open
YaroED opened this issue Jan 23, 2024 · 2 comments

Comments

@YaroED
Copy link

YaroED commented Jan 23, 2024

【@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",
},
})

@rex-ll
Copy link

rex-ll commented May 15, 2024

+1

@ArthurDarkstone
Copy link

ArthurDarkstone commented Aug 19, 2024

image

vuejs/vitepress#3314

这是一个vitepress 的问题,pluginWebUpdateNotice 内部使用了transformIndexHtml 这个hook。

但是在vitepress 使用 vite 构建文档时,不会调用transformIndexHtml。建议等待官方修复后,升级vitepress 至最新版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants