zerodevx / svelte-img

High-performance responsive/progressive images for SvelteKit
https://zerodevx.github.io/svelte-img/
ISC License
300 stars 11 forks source link

Image cache #35

Closed Suyashtnt closed 3 months ago

Suyashtnt commented 9 months ago

It would be really nice if it could cache pre-built images in .svelte-kit or similar so the image cache can be shared across builds/CI

zerodevx commented 9 months ago

This should probably be solved at the vite or vite-imagetools level. There's ongoing discussion here.

benmccann commented 3 months ago

The latest version of vite-imagetools now includes a cache

Suyashtnt commented 3 months ago

well then

Suyashtnt commented 3 months ago

on another note: I wonder when sveltekits official solution will have this

zerodevx commented 3 months ago

The latest version of vite-imagetools now includes a cache

@benmccann Thanks for the heads-up, I'll check it out.

benmccann commented 3 months ago

@sveltejs/enhanced-img also uses vite-imagetools, so it now supports caching as well