astro-critters-slim
v1.0.1
Published
🦔 Minimal Critters integration for astro.js
Downloads
158
Maintainers
Readme
[astro-critters-slim] 🦔
This Astro integration brings critters to your Astro projects SSG builds.
Critters inlines all of the css, a page is using, into the page. Note that it does that for ALL of the used css on the page, not just the critical / above-the-fold CSS.
Installation
npx astro add astro-critters-slim
Options
The integration does not come with any options itsefl. For configuration head over to the critters dogs.
To use the defaults as per critters
import crittersSlim from "astro-critters-slim";
export default {
integrations: [
// You want critters to run as late as possible
crittersSlim()
],
};
Some noteworthy options
import crittersSlim from "astro-critters-slim";
export default {
integrations: [
crittersSlim({
path: './path/to/your/dist', // path to your astro-build if somewhere special (default: './dist')
pruneSource: true, // 🚨 Not supported and kind a broken in critters anyway (default: false)
})
],
};
Changelog
See CHANGELOG.md