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:
Panagiotis Papadopoulos 2025-02-17 23:07:54 +01:00 committed by Panagiotis Papadopoulos
parent 745b294ca1
commit 2be9389f3b

View File

@ -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"
}; };