Search code examples
javascriptelectronelectron-packager

Reduce weight of a electron app


I have one switch code to identify the windows arch: ia32 and x64, and by this i have two pepflashplayer.dll in my app folder but the weight of the two files is 45.8mb (And the final weight of the app is 74mb), and i think that my app weigh too much for only charging a game in a website

Doesn't exist any method to make the files lighter?


Solution

  • For me the size of my finished app is around 50mb and if your adding 45mb to the package is going to get quite big.

    Here's a github issue on it.

    The comment I'm emphasizing is:

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

    The reason why it's so big is because electron is loading most of chromium inside that 50mb file which I think it's pretty darn small for 50mb

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