feat: Chore: Initial Release (#4)

* Create draft PR for #3
[skip ci]

* add changeset for release

* sharp sucks... moving to squoosh

* Add squooshImageService to Astro Config

* test

* Remove squooshImageService import from astro.config.mts now that the integration is handling setting squoosh as the image service

---------

Co-authored-by: create-issue-branch[bot] <53036503+create-issue-branch[bot]@users.noreply.github.com>
Co-authored-by: Adam Matthiesen <amatthiesen@outlook.com>
This commit is contained in:
create-issue-branch[bot] 2024-03-11 06:44:07 -07:00 committed by GitHub
parent 517607f9b4
commit 3a327762cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
"@matthiesenxyz/astro-hashnode": minor
---
Initial Release!

View File

@ -5,6 +5,7 @@ import { optionsSchema } from "./schemas/user-config";
import c from "picocolors"; import c from "picocolors";
import { AstroError } from "astro/errors"; import { AstroError } from "astro/errors";
import { readFileSync } from "node:fs"; import { readFileSync } from "node:fs";
import { squooshImageService } from "astro/config";
/** /**
* Astro-Hashnode Integration * Astro-Hashnode Integration
@ -90,7 +91,12 @@ export default defineIntegration({
"page-ssr", "page-ssr",
`import "${resolve("./styles/tailwind.css")}";` `import "${resolve("./styles/tailwind.css")}";`
); );
// Update Astro Config
updateConfig({ updateConfig({
image: {
service: squooshImageService(),
},
vite: { vite: {
css: { transformer: "lightningcss" }, css: { transformer: "lightningcss" },
} }