mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	build(webpack): change to nosources-source-map
as per https://webpack.js.org/configuration/devtool/#production serving the `source-map` file to "normal" users seems to be not recommended, so instead let's go with `nosources-source-map`: a) this drastically reduces app-dist folder size from 20MB down to 8.7MB b) it still allows for stack traces
This commit is contained in:
		
				
					committed by
					
						 Panagiotis Papadopoulos
						Panagiotis Papadopoulos
					
				
			
			
				
	
			
			
			
						parent
						
							745b294ca1
						
					
				
				
					commit
					2be9389f3b
				
			| @@ -75,7 +75,7 @@ const config: Configuration = { | |||||||
|             ".mjs": [".mjs", ".mts"] |             ".mjs": [".mjs", ".mts"] | ||||||
|         } |         } | ||||||
|     }, |     }, | ||||||
|     devtool: "source-map", |     devtool: "nosources-source-map", | ||||||
|     target: "electron-renderer" |     target: "electron-renderer" | ||||||
| }; | }; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user