mirror of
https://github.com/thiloho/aurora.git
synced 2025-11-22 03:21:35 +01:00
Use squoosh
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { defineConfig } from "astro/config";
|
import { defineConfig, squooshImageService } from "astro/config";
|
||||||
import { rehypeHeadingIds } from "@astrojs/markdown-remark";
|
import { rehypeHeadingIds } from "@astrojs/markdown-remark";
|
||||||
import rehypeAutolinkHeadings from "rehype-autolink-headings";
|
import rehypeAutolinkHeadings from "rehype-autolink-headings";
|
||||||
import svelte from "@astrojs/svelte";
|
import svelte from "@astrojs/svelte";
|
||||||
@@ -8,6 +8,9 @@ export default defineConfig({
|
|||||||
site: "https://aurora.thilohohlt.com",
|
site: "https://aurora.thilohohlt.com",
|
||||||
compressHTML: true,
|
compressHTML: true,
|
||||||
scopedStyleStrategy: "class",
|
scopedStyleStrategy: "class",
|
||||||
|
image: {
|
||||||
|
service: squooshImageService(),
|
||||||
|
},
|
||||||
markdown: {
|
markdown: {
|
||||||
rehypePlugins: [
|
rehypePlugins: [
|
||||||
rehypeHeadingIds,
|
rehypeHeadingIds,
|
||||||
|
|||||||
Reference in New Issue
Block a user