marked-webpack-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

marked-webpack-plugin

A webpack5 plugin for markdown to html

Usage

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"),
})

Configuration Settings

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

Package Sidebar

Install

npm i marked-webpack-plugin

Weekly Downloads

22

Version

1.0.1

License

MIT

Unpacked Size

7.66 kB

Total Files

6

Last publish

Collaborators

  • kaze-k