Add name/version/homepage banner to markdownlint-micromark artifacts.

This commit is contained in:
David Anson 2023-06-23 03:36:07 +00:00
parent 8fb6287300
commit 272c15ed39
2 changed files with 24 additions and 2 deletions

View file

@ -2,6 +2,10 @@
"use strict";
const webpack = require("webpack");
const TerserPlugin = require("terser-webpack-plugin");
const { name, version, homepage } = require("./package.json");
const htmlEntry = "./exports-html.mjs";
const htmlName = "micromarkHtmlBrowser";
@ -9,7 +13,12 @@ const base = {
"entry": "./exports.mjs",
"output": {
"path": __dirname
}
},
"plugins": [
new webpack.BannerPlugin({
"banner": `${name} ${version} ${homepage}`
})
]
};
const commonjs = {
@ -36,7 +45,19 @@ const web = {
};
const production = {
"mode": "production"
"mode": "production",
"optimization": {
"minimizer": [
new TerserPlugin({
"extractComments": false,
"terserOptions": {
"compress": {
"passes": 2
}
}
})
]
}
};
const development = {