Enhanced Images
Images can have a big impact on your app's performance. For best results, you should optimize them by doing the following:
@sveltejs/enhanced-img
Setup
npm install --save-dev @sveltejs/enhanced-imgimport { sveltekit } from '@sveltejs/kit/vite';
import { enhancedImages } from '@sveltejs/enhanced-img';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [
enhancedImages(),
sveltekit()
]
});Using it on images
Last updated