webpack-markdown-pdf-plugin
v0.0.15
Published
webpack plugin that convert Markdown file to PDF.
Downloads
6
Readme
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.