mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Add name/version/homepage banner to markdownlint-micromark artifacts.
This commit is contained in:
parent
8fb6287300
commit
272c15ed39
2 changed files with 24 additions and 2 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue