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

Our upload artefact is larger then 1GB, drop support for some screen sizes or formats (AVIF) to reduce bundle size. #21

Closed
bnjmnrsh opened this issue Sep 16, 2024 · 1 comment

Comments

@bnjmnrsh
Copy link
Contributor

No description provided.

@bnjmnrsh
Copy link
Contributor Author

bnjmnrsh commented Sep 16, 2024

On further investigation, while we could drop support for AVIF, it appears that we have a lot of very large images, which are bundled for some reason, even though I dont believe they area actually used in the code. -- need to verify.

ref: withastro/astro#4961 (comment)

bnjmnrsh added a commit that referenced this issue Sep 16, 2024
Our bundle was over 1.3gb due to all the high rez images being included in the build. They were not being used however. Due to some use cases Astro includes them by default, however Github's max deploy for pages is 1GB (with some flexibility). This promises to drasitcally reduce our bundle.
bnjmnrsh added a commit to memorialforestdg/memorialforestdg.mirror that referenced this issue Sep 17, 2024
…ginalImages

removeOriginalImages is too agressive and is removing images required for gallery popups etc.
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

No branches or pull requests

1 participant