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

Improve prod bundle size #2447

Merged
merged 1 commit into from May 7, 2024
Merged

Improve prod bundle size #2447

merged 1 commit into from May 7, 2024

Conversation

HeavenVolkoff
Copy link
Member

@HeavenVolkoff HeavenVolkoff commented May 3, 2024

  • Main spacedrive binary went from ~120M to ~40M
  • Use more optimized options for rust prod build
  • Improve vite settings for front-end prod build
  • Improve lossless compression of PNGs
  • Don't include videos in bundles when they are not used
  • Don't generate/bundle sourcemap for prod builds

Final bundle size for Spacedrive was reduced around 45% (AppImage being the exception due to other factors)

New prod bundle Prod bundle for v0.2.14

A test release for this PR is available here

… size

 - Main spacedrive binary went from ~120M to ~40M
 - Add more optimize options for rust prod build
 - Improve vite settings for front-end prod build
 - Improve lossless compression of PNGs
 - Don't include videos in bundles when they are not used
 - Don't generate/bundle sourcemap for prod builds
@HeavenVolkoff HeavenVolkoff requested review from a team as code owners May 3, 2024 04:14
Copy link

vercel bot commented May 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
spacedrive-landing ✅ Ready (Inspect) Visit Preview May 3, 2024 4:14am
spacedrive-web ✅ Ready (Inspect) Visit Preview May 3, 2024 4:14am

@fogodev fogodev added this pull request to the merge queue May 7, 2024
Merged via the queue into main with commit 81c2b8b May 7, 2024
17 checks passed
@fogodev fogodev deleted the reduce-binary-size branch May 7, 2024 19:39
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

3 participants