mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-28 18:42:28 +08:00
chore(mermaid): set up single-chunk ELK
This commit is contained in:
parent
d36b8ff4c4
commit
4d5f04de13
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 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
|
||||
})
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user