JSPM

@vuepress-dumi/vuepress-plugin-dumi-previewer

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1011
  • Score
    100M100P100Q126455F
  • License MIT

A dumi style code previewer plugin for VuePress.

Package Exports

  • @vuepress-dumi/vuepress-plugin-dumi-previewer

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@vuepress-dumi/vuepress-plugin-dumi-previewer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vuepress-plugin-dumi-previewer

English | 简体中文

💡attention: whitespace is in need before demo

::: demo
<div @click="handleClick">click me</div>

<script>
export default {
  methods: {
    handleClick() {
      console.warn('clicked')
    }
  }
}
</script>
:::

Install

$ npm i -D @vuepress-dumi/vuepress-plugin-dumi-previewer
# OR
$ yarn add -D @vuepress-dumi/vuepress-plugin-dumi-previewer

Usage

Write vuepress config

// .vuepress/config.js
module.exports = {
  plugins: ['@vuepress-dumi/dumi-previewer'],
}

Thanks

This repo is inspired by the following projects, Thanks for their great work.