让电子应用程序更小? [英] Make electron app smaller?

查看:12
本文介绍了让电子应用程序更小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近刚刚构建了一个电子应用程序并使用电子打包器打包它..exe 文件为 55,000kb,文件夹的其余部分也非常庞大.有什么办法可以完全减小这个应用程序的大小?

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 take down the size of this application at all?

推荐答案

这里有一个 github 问题 就可以了.

Here's a github issue on it.

我要强调的评论是:

这是预期的大小,没有办法让它变小.

That's the expected size, there is no way to make it smaller.

之所以这么大,是因为电子在那个 50mb 的文件中加载了大部分铬.

The reason why it's so big is because electron is loading most of chromium inside that 50mb file.

所以没有遗憾的是没有办法让它变小抱歉.

So no unfortunately there is no way to make it smaller sorry.

这篇关于让电子应用程序更小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆