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

Document how to cache @sveltejs/enhanced-img in GitHub Pages #13494

Open
janosh opened this issue Feb 23, 2025 · 0 comments
Open

Document how to cache @sveltejs/enhanced-img in GitHub Pages #13494

janosh opened this issue Feb 23, 2025 · 0 comments

Comments

@janosh
Copy link
Contributor

janosh commented Feb 23, 2025

Describe the problem

i have a site build that went from 1 min on build and deploy with https://github.com/actions/deploy-pages to 11 min after adding @sveltejs/enhanced-img. locally, this is a 1 time cost since the transformed images are cached in node_modules. caching does not work out of the box in CI though. since this seems like a very common use case, i think it makes sense to recommend this to users and show them how to do it

Image

Describe the proposed solution

https://svelte.dev/docs/kit/images seems like a good place to document how to cache @sveltejs/enhanced-img in GitHub actions.

another option to speed up builds would be to allow configuring which image formats to build. e.g. i only really need PNG to Avif conversion, but there's no way to configure that. related issue tracking the ability to pass vite-imagetools config: #12615

Alternatives considered

No response

Importance

would make my life easier

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants