0.0.15 • Published 2 years ago

webpack-markdown-pdf-plugin v0.0.15

Weekly downloads
8
License
MIT
Repository
github
Last release
2 years ago

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.