mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +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 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
 | 
			
		||||
        })
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user