Looking at the package contents of an Electron OSX app, I see that there is a lot of node module cruft included which isn't needed at runtime and which add to app size bloat. For example, that lightgallery "demo" directory, in the first image below, is 1.9 mb.
This makes me wonder if I am doing something wrong with either my package.json
file or with my build script:
"package-mac": "electron-packager . --overwrite --platform=darwin
--arch=x64 --prune=true --out=release-builds",
Is there any way to get rid of all the extra stuff?