Introduce micromark-html-browser(.dev).js exporting micromark functions to render HTML from parsed/processed Markdown.

This commit is contained in:
David Anson 2023-05-27 18:03:20 -07:00
parent 1dd49791e0
commit 91e5a2f134
5 changed files with 43 additions and 2 deletions

View file

@ -2,6 +2,9 @@
"use strict";
const htmlEntry = "./exports-html.mjs";
const htmlName = "micromarkHtmlBrowser";
const base = {
"entry": "./exports.mjs",
"output": {
@ -73,5 +76,31 @@ module.exports = [
...web.output,
"filename": "micromark-browser.dev.js"
}
},
{
...web,
...production,
"entry": htmlEntry,
"output": {
...web.output,
"library": {
...web.output.library,
"name": htmlName
},
"filename": "micromark-html-browser.js"
}
},
{
...web,
...development,
"entry": htmlEntry,
"output": {
...web.output,
"library": {
...web.output.library,
"name": htmlName
},
"filename": "micromark-html-browser.dev.js"
}
}
];