mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
chore(mermaid): set up single-chunk ELK
This commit is contained in:
1
libraries/mermaid-elk/elk.min.js
vendored
Normal file
1
libraries/mermaid-elk/elk.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -1,12 +1,19 @@
|
|||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
const webpack = require("webpack");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: "production",
|
mode: "production",
|
||||||
entry: "./main.js",
|
entry: "./main.js",
|
||||||
output: {
|
output: {
|
||||||
library: "MERMAID_ELK",
|
library: "MERMAID_ELK",
|
||||||
path: path.resolve(__dirname, "dist"),
|
filename: "elk.min.js",
|
||||||
|
path: path.resolve(__dirname),
|
||||||
libraryTarget: "umd",
|
libraryTarget: "umd",
|
||||||
libraryExport: "default"
|
libraryExport: "default"
|
||||||
}
|
},
|
||||||
|
plugins: [
|
||||||
|
new webpack.optimize.LimitChunkCountPlugin({
|
||||||
|
maxChunks: 1
|
||||||
|
})
|
||||||
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user