1.0.1 • Published 12 months ago

astro-critters-slim v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

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

1.0.1

12 months ago

1.0.0

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago