chore(mermaid): set up single-chunk ELK

This commit is contained in:
Elian Doran 2024-11-25 21:16:39 +02:00
parent d36b8ff4c4
commit 4d5f04de13
No known key found for this signature in database
2 changed files with 10 additions and 2 deletions

1
libraries/mermaid-elk/elk.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,12 +1,19 @@
const path = require("path");
const webpack = require("webpack");
module.exports = {
mode: "production",
entry: "./main.js",
output: {
library: "MERMAID_ELK",
path: path.resolve(__dirname, "dist"),
filename: "elk.min.js",
path: path.resolve(__dirname),
libraryTarget: "umd",
libraryExport: "default"
}
},
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1
})
]
}