vendredi 25 septembre 2020

How do you package an ember-electron app to not include the dependencies for the UI?

We believe we have followed the standard instructions for setting up an ember-electron app. However, when we run

ember electron:package

and look inside the node modules directory in the output:

electron-out/ui-linux-x64/resources/app/node_modules

we see a lot of the dependencies that are required by the ember application, but are not required by Electron. This is causing an output package that is too large (about 1GB).

As far as I am aware the package.json file contains all the packages for both the Ember app as well as the Electron "server" side. Do we need to change our setup? Call the package command with additional arguments? Move Ember dependencies to devDendencies? Somehow change it so that there are two package.json files?

Thanks




Aucun commentaire:

Enregistrer un commentaire