UNPKG

@sveltejs/enhanced-img

Version:

Image optimization for your Svelte apps

18 lines (9 loc) 707 B
# `@sveltejs/enhanced-img` A Vite plugin which runs a Svelte preprocessor to locate images and then transform them at build-time. **WARNING**: This package is experimental. It uses pre-1.0 versioning and may introduce breaking changes with every minor version release. ## Docs [Docs](https://svelte.dev/docs/kit/images) ## Changelog [The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/enhanced-img/CHANGELOG.md). ## Acknowledgements We'd like to thank the author of `svelte-preprocess-import-assets`, which this code is partially based off of. We'd also like to thank the authors of `vite-imagetools` which is used in `@sveltejs/enhanced-img`.