mirror of
https://github.com/apricote/ein-pfeil-am-rechten-fleck.de.git
synced 2026-01-13 13:01:02 +00:00
feat: optimize image displays
This commit is contained in:
parent
7f43189f83
commit
6bf33e9664
7 changed files with 155 additions and 59 deletions
|
|
@ -3,5 +3,13 @@ import { defineConfig } from "vite";
|
|||
import { imagetools } from "vite-imagetools";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [imagetools(), sveltekit()],
|
||||
plugins: [
|
||||
imagetools({
|
||||
defaultDirectives: new URLSearchParams({
|
||||
as: "metadata",
|
||||
format: "avif;webp;png",
|
||||
}),
|
||||
}),
|
||||
sveltekit(),
|
||||
],
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue