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:
parent
517607f9b4
commit
3a327762cc
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"@matthiesenxyz/astro-hashnode": minor
|
||||||
|
---
|
||||||
|
|
||||||
|
Initial Release!
|
|
@ -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" },
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue