mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
25 lines
384 B
Markdown
25 lines
384 B
Markdown
# `@vuepress-plume/plugin-copy-code`
|
|
|
|
## Install
|
|
|
|
```sh
|
|
npm install @vuepress-plume/plugin-copy-code
|
|
# or
|
|
pnpm add @vuepress-plume/plugin-copy-code
|
|
# or
|
|
yarn add @vuepress-plume/plugin-copy-code
|
|
```
|
|
## Usage
|
|
``` js
|
|
// .vuepress/config.js
|
|
import { copyCodePlugin } from '@vuepress-plume/plugin-copy-code'
|
|
|
|
export default {
|
|
// ...
|
|
plugins: [
|
|
copyCodePlugin()
|
|
]
|
|
// ...
|
|
}
|
|
```
|