This is an Astro integration that provides a way to add link tags for all CSS and JS modules that Astro automatically adds in each page.
The only prerequisite is using astro@4.0.0
or higher.
Install the integration automatically using the Astro CLI:
pnpm astro add @itsmatteomanf/astro-early-hints
npx astro add @itsmatteomanf/astro-early-hints
yarn astro add @itsmatteomanf/astro-early-hints
Or install it manually:
- Install the required dependencies
pnpm add @itsmatteomanf/astro-early-hints
npm install @itsmatteomanf/astro-early-hints
yarn add @itsmatteomanf/astro-early-hints
- Add the integration to your astro config
+import earlyHints from "@itsmatteomanf/astro-early-hints";
export default defineConfig({
integrations: [
+ earlyHints(),
],
});
No configuration is necessary or exists.
MIT Licensed. Made with ❤️ by Matteo Manfredi.