Skip to content

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

Open
@janosh

Description

@janosh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions