mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
* feat(theme)!: migrate `plugin-markdown-hint` * chore: tweak * chore: tweak * chore: tweak * chore: tweak * chore: tweak * chore: tweak * chore: tweak * chore: tweak * chore: tweak * chore: tweak * fix(theme): improve `home-blog` styles in mobile, close #210 * chore: tweak * chore: tweak
@vuepress-plume/plugin-content-update
替换 @vuepress/client 的 <Content /> 组件,注入 onContentUpdated 生命周期。
实现当页面内容发生更新时,触发 onContentUpdated 事件。
Install
npm install @vuepress-plume/plugin-content-update
# or
pnpm add @vuepress-plume/plugin-content-update
# or
yarn add @vuepress-plume/plugin-content-update
Usage
// .vuepress/config.[jt]s
import { contentUpdatePlugin } from '@vuepress-plume/plugin-content-update'
export default {
// ...
plugins: [
contentUpdatePlugin()
]
// ...
}