webpack-markdown-pdf-plugin

0.0.15 • Public • Published

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.

Package Sidebar

Install

npm i webpack-markdown-pdf-plugin

Weekly Downloads

1

Version

0.0.15

License

MIT

Unpacked Size

29.1 kB

Total Files

8

Last publish

Collaborators

  • zhoupeng