From 2be9389f3bb2b8eda1fae349eddbf4ca9ee4a8c6 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Mon, 17 Feb 2025 23:07:54 +0100 Subject: [PATCH] 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 --- webpack.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.ts b/webpack.config.ts index 3b2e45353..82439ea6d 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -75,7 +75,7 @@ const config: Configuration = { ".mjs": [".mjs", ".mts"] } }, - devtool: "source-map", + devtool: "nosources-source-map", target: "electron-renderer" };