Skip to content

📦 markdown-loader built on vuepress for webpack using marked.

License

Notifications You must be signed in to change notification settings

tanxchen/markdown-vuepress-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

markdown-vuepress-loader

📦 markdown-loader built on vuepress for webpack using marked.

Installation

npm install markdown-vuepress-loader -D

Usage

  • Vue-cli 3.0+
// vue.config.js
module.exports = {
  // ...
  chainWebpack: config => {
    config.module
      .rule('markdown')
      .test(/\.md$/)
      .use('vue-loader')
      .loader('vue-loader')
      .options({
        compilerOptions: {
          preserveWhitespace: false
        }
      })
      .end()
      .use('markdown-loader')
      .loader('markdown-vuepress-loader')
    // .options({ markdown })
  }
}

import style in main.js

// main.js
import 'markdown-vuepress-loader/lib/style.css'

About

📦 markdown-loader built on vuepress for webpack using marked.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published