1.3.1 • Published 6 months ago
@vuepress-denaro/vuepress-plugin-vue-preview v1.3.1
vuepress-plugin-vue-preview
:tada: Preview vue component effects on your vuepress site.在你的 vuepress 站点上预览 vue 组件效果.
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
1.3.1
6 months ago
1.3.0
6 months ago
1.2.1-beta.0
7 months ago
1.2.0-beta.0
8 months ago
1.1.1-beta.0
1 year ago
1.1.0
1 year ago
1.1.0-alpha.1
2 years ago
1.1.0-alpha.2
2 years ago
1.0.2-alpha.11
2 years ago
1.0.2-alpha.8
2 years ago
1.0.2-alpha.9
2 years ago
1.0.2-alpha.6
2 years ago
1.0.2-alpha.10
2 years ago
1.0.2-alpha.7
2 years ago
1.0.2-alpha.5
2 years ago
1.0.2-alpha.4
2 years ago
1.0.2-alpha.3
2 years ago
1.0.2-alpha.2
2 years ago
1.0.2-alpha.1
2 years ago
1.0.2-alpha.0
2 years ago