Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: reduce shipped and installed size #589

Merged
merged 1 commit into from Jun 27, 2021
Merged

refactor: reduce shipped and installed size #589

merged 1 commit into from Jun 27, 2021

Conversation

csett86
Copy link
Member

@csett86 csett86 commented May 24, 2021

This moves all webpacked deps to be automatically included from the asar
and thus reduces the shipped binary by 14MB on Windows, 16 MB on Mac and
12MB on Linux. The installed size on mac is reduced by 105 MB.

Previously all the dependencies were webpacked and minified in the asar in the
build folder and in its full installed version unused under node_modules.

Only keep the dependencies that are externally required in the node-modules
folder.

Signed-off-by: Christoph Settgast csett86@web.de

@csett86 csett86 changed the title refactor: move all dependencies that are webpacked into dev-deps refactor: reduce shipped artifact size by 56MB May 24, 2021
@csett86 csett86 force-pushed the slim-release branch 3 times, most recently from 7b03ea6 to 92d43be Compare May 24, 2021 11:23
@csett86 csett86 changed the title refactor: reduce shipped artifact size by 56MB refactor: reduce shipped and installed size May 24, 2021
@csett86
Copy link
Member Author

csett86 commented May 29, 2021

@saghul FYI: I would merge these PRs myself (or directly push to master) after successful testing to help you with maintenance, but unfortunately thats rejected for contributors with the current permission setup for this repo.

This moves all webpacked deps to be automatically included from the asar
and thus reduces the shipped binary by 14MB on Windows, 16 MB on Mac and
12MB on Linux. The installed size on mac is reduced by 105 MB.

Previously all the dependencies were webpacked and minified in the asar in the
build folder and in its full installed version unused under node_modules.

Only keep the dependencies that are externally required in the node-modules
folder.

Signed-off-by: Christoph Settgast <csett86@web.de>
@csett86
Copy link
Member Author

csett86 commented Jun 27, 2021

@saghul I have tested this successfully on windows, mac and linux. Please approve if you agree to the approach

@csett86 csett86 merged commit 9b1e390 into master Jun 27, 2021
@csett86 csett86 deleted the slim-release branch June 27, 2021 18:58
@csett86 csett86 mentioned this pull request Jun 30, 2021
d3473r pushed a commit to d3473r/jitsi-meet-electron that referenced this pull request Sep 1, 2023
This moves all webpacked deps to be automatically included from the asar
and thus reduces the shipped binary by 14MB on Windows, 16 MB on Mac and
12MB on Linux. The installed size on mac is reduced by 105 MB.

Previously all the dependencies were webpacked and minified in the asar in the
build folder and in its full installed version unused under node_modules.

Only keep the dependencies that are externally required in the node-modules
folder.

Signed-off-by: Christoph Settgast <csett86@web.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants