Make electron app smaller?

后端 未结 3 1281
梦如初夏
梦如初夏 2021-02-07 09:11

I just recently built an electron app and packaged it using electron-packager. The .exe file is 55,000kb and the rest of the folder is quite bulky as well. Is there any way to t

3条回答
  •  后悔当初
    2021-02-07 09:22

    There is a way to reduce Electron size drastically (up to 99%, depending how big is your app), by using native browser, available in each OS, instead of loading webkit. BUT as built in browsers don't have the system API's, you will also be drastically limited in what you can do. But, if you need basic web ui app, this might be the best solution out there, though, it must be mentioned, that it might have some unexpected issues, as you will need to test your app on different OS'es browsers..

    The method i'm talking about is available in awesome post Put your Electron app on a diet with Electrino by Pauli Olavi Ojala

提交回复
热议问题