vuepress-theme-plume/plugins/plugin-content-update
pengzhanbo 49672724eb
feat(theme)!: migrate plugin-md-enhance to official plugins (#206)
* 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
2024-09-26 00:06:23 +08:00
..
2024-09-21 07:11:20 +08:00
2023-12-29 00:15:20 +08:00
2024-03-22 01:09:57 +08:00
2024-09-11 00:03:13 +08:00

@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()
  ]
  // ...
}