@vuepress-plume/plugin-content-update
v1.0.0-rc.122
Published
The Plugin for VuePress 2 - content update
Downloads
1,916
Readme
@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()
]
// ...
}