Use squoosh

This commit is contained in:
thiloho
2023-09-02 15:29:35 +02:00
parent e964626a63
commit 628f9aeb62

View File

@@ -1,4 +1,4 @@
import { defineConfig } from "astro/config";
import { defineConfig, squooshImageService } from "astro/config";
import { rehypeHeadingIds } from "@astrojs/markdown-remark";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import svelte from "@astrojs/svelte";
@@ -8,6 +8,9 @@ export default defineConfig({
site: "https://aurora.thilohohlt.com",
compressHTML: true,
scopedStyleStrategy: "class",
image: {
service: squooshImageService(),
},
markdown: {
rehypePlugins: [
rehypeHeadingIds,