diff --git a/.changeset/tricky-fireants-look.md b/.changeset/tricky-fireants-look.md new file mode 100644 index 0000000..6ebe655 --- /dev/null +++ b/.changeset/tricky-fireants-look.md @@ -0,0 +1,5 @@ +--- +"@matthiesenxyz/astro-hashnode": minor +--- + +Initial Release! diff --git a/package/src/astro-hashnode.ts b/package/src/astro-hashnode.ts index db90445..2c44b21 100644 --- a/package/src/astro-hashnode.ts +++ b/package/src/astro-hashnode.ts @@ -5,6 +5,7 @@ import { optionsSchema } from "./schemas/user-config"; import c from "picocolors"; import { AstroError } from "astro/errors"; import { readFileSync } from "node:fs"; +import { squooshImageService } from "astro/config"; /** * Astro-Hashnode Integration @@ -90,7 +91,12 @@ export default defineIntegration({ "page-ssr", `import "${resolve("./styles/tailwind.css")}";` ); + + // Update Astro Config updateConfig({ + image: { + service: squooshImageService(), + }, vite: { css: { transformer: "lightningcss" }, }