JSPM

  • Created
  • Published
  • Downloads 59538
  • Score
    100M100P100Q161177F
  • License MIT

markdown-loader for vuepress

Package Exports

  • @vuepress/markdown-loader
  • @vuepress/markdown-loader/index.js

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/markdown-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@vuepress/markdown-loader

markdown-loader for VuePress

Usage

const rule = config.module
    .rule('markdown')
      .test(/\.md$/)

rule
  .use('vue-loader')
    .loader('vue-loader')
    .options({ /* ... */ })

rule
  .use('markdown-loader')
    .loader(require.resolve('@vuepress/markdown-loader'))
    .options({
       markdown: /* instance created by @vuepress/markdown */,
       sourceDir: /* root source directory of your docs */,
    })