-
-
Notifications
You must be signed in to change notification settings - Fork 746
Open
Labels
Milestone
Description
I have a few questions regarding the publish output which I couldn't really find an answer to so far:
- Why is the output so large? The .NET runtime should be around 80-100MB and the electron binary around 150MB. Yet my current output (from the example Blazor Web App project) is more than 500MB as compressed binary.
- I think some content is also packaged twice. This can be observed either by unpacking the
app.asarfile (npx @electron/asar extract app.asar <dir>), or by settingasartofalsein theelectron-builder.jsonfile. The archive content underapp.asar/binseems to exist twice? - Is there any way to reduce the bundle size of the electron package? I've seen some reports that claim they managed to reduce their electron apps to below 50MB (or even less in some cases). Is the
node_modulesdirectory even required?
Furthermore, the startup time from launching the app via the published .exe file seems rather large? Does it extract the content every time you open the app?