A webpack5 plugin for markdown to html
add this plugin:
yarn add marked-webpack-plugin -D
configure the plugin:
new MarkedWebpackplugin({
input: path.resolve(__dirname, "./CHANGELOG.md"),
output: path.resolve(__dirname, "./CHANGELOG.html"),
title: "change log",
template: path.resolve(__dirname, "./template.html"),
})
Option | Required | Type | Default | About |
---|---|---|---|---|
input | yes | string | none | The markdwon file that needs to be converted to html |
output | yes | string | none | The output html file |
title | no | string | "change log" | html title |
template | no | string | "dist/template.html" | Template file |