@vuepress-denaro/vuepress-plugin-vue-preview
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

vuepress-plugin-vue-preview

🎉 Preview vue component effects on your vuepress site.在你的 vuepress 站点上预览 vue 组件效果.

npm version GitHub stars GitHub issues
jsdelivr NPM

Usage

  • Install
# npm
npm install @vuepress-denaro/vuepress-plugin-vue-preview

# yarn
yarn add @vuepress-denaro/vuepress-plugin-vue-preview
  • Update plugins in .vuepress/config.js or .vuepress/config.ts

js

const {
  vuePreviewPlugin,
} = require('@vuepress-denaro/vuepress-plugin-vue-preview')
module.exports = {
  plugins: [
    vuePreviewPlugin({
      rootPath: '', // Replacement path for '@root'
    }),
  ],
}

ts

import { vuePreviewPlugin } from '@vuepress-denaro/vuepress-plugin-vue-preview'
import { defineUserConfig } from '@vuepress/cli'

export default defineUserConfig({
  plugins: [
    vuePreviewPlugin({
      rootPath: '', // Replacement path for '@root'
    }),
  ],
})
  • Write markdown

single file import

@[code]{@/.vuepress/vue-previews/demo.vue}

vue component import

@[preview-demo]{@/.vuepress/vue-previews/demo.vue}

the vue group only shows the code group

@[preview]{@/.vuepress/vue-previews/demo.vue}

documentation for generating vue files

@[docvue]{@/.vuepress/vue-previews/demo.vue}

Thanks

vuepress-plugin-vue-preview

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.3.13latest
1.2.1-beta.01next

Version History

VersionDownloads (Last 7 Days)Published
1.3.13
1.3.01
1.2.1-beta.01
1.2.0-beta.00
1.1.1-beta.01
1.1.00
1.1.0-alpha.20
1.1.0-alpha.10
1.0.2-alpha.110
1.0.2-alpha.100
1.0.2-alpha.90
1.0.2-alpha.80
1.0.2-alpha.70
1.0.2-alpha.60
1.0.2-alpha.50
1.0.2-alpha.40
1.0.2-alpha.30
1.0.2-alpha.20
1.0.2-alpha.10
1.0.2-alpha.00

Package Sidebar

Install

npm i @vuepress-denaro/vuepress-plugin-vue-preview

Weekly Downloads

6

Version

1.3.1

License

MIT

Unpacked Size

20 kB

Total Files

28

Last publish

Collaborators

  • vxhly