astro-critters-slim

1.0.1 • Public • Published

[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

Package Sidebar

Install

npm i astro-critters-slim

Weekly Downloads

5

Version

1.0.1

License

MIT

Unpacked Size

6.29 kB

Total Files

5

Last publish

Collaborators

  • suven