webpack plugin that convert Markdown file to PDF.
engine powerd by markdown-pdf.
css beased github-markdown-css
npm install webpack-markdown-pdf-plugin --save-dev
yarn add webpack-markdown-pdf-plugin --dev
const WebpackMarkdownToPdfPlugin = require('webpack-markdown-pdf-plugin')
module.exports = {
plugins: [
new WebpackMarkdownToPdfPlugin({
filename: './pdf/[name].pdf'
})
]
}
default: './pdf/[name].pdf'
The output file's name, you can modify this option to change files output path and names.
you can learn more details on markdown-pdf documentation.