Skip to content

Richard-Choooou/webpack-markdown-pdf-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webpack-markdown-pdf-plugin

webpack plugin that convert Markdown file to PDF.

engine powerd by markdown-pdf.

css beased github-markdown-css

Install

npm install webpack-markdown-pdf-plugin --save-dev
yarn add webpack-markdown-pdf-plugin --dev

Usage

Minimal example

const WebpackMarkdownToPdfPlugin = require('webpack-markdown-pdf-plugin')

module.exports = {
    plugins: [
        new WebpackMarkdownToPdfPlugin({
            filename: './pdf/[name].pdf'
        })
    ]
}

Configuration

filename

default: './pdf/[name].pdf'

The output file's name, you can modify this option to change files output path and names.

other options

you can learn more details on markdown-pdf documentation.

About

webpack transfer markdown to pdf plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages