I have an Electron
and Anguarjs CLI
app that I want to distribute.
After running ng build --prod
I get a dist
directory that is ~1Mb.
However after running electron-packager .
the app is ~350Mb.
I have my electron main.js
setup to point to the index.html
of the dist
, but I am guessing that the package command doesn't use the dist
to build the app but rather the bloated dev version.
I have tried running electron-packager .
from within dist
, it still creates a huge app.
Is there a way to package the dist
folder?
Should I rather be using a different packaging tool?
My aim is to package the app so that doesn't nuke band width to distribute.