Overview
AstroCritters is an Astro integration that brings critters to your Astro project. With the Critters plugin, you can inline your app's critical CSS and lazy-load the rest. However, it's important to note that AstroCritters will only inline your statically generated build and pre-rendered routes, and not inline your requests.
Features
- Inline Critical CSS: AstroCritters automatically inlines the critical CSS of your HTML files.
- Override Default Options: You have the option to override any of the default options from the configuration of Critters or disable them entirely.
- Adding Multiple Paths: You can add multiple paths to inline by specifying an array as the Path variable.
- Input-Output Mapping: AstroCritters allows you to provide a map of paths for different input-output directories.
- File Filtering: You can filter files to exclude specific ones from inlining by using regular expressions or functions to match file names.
- Controlling Logging: You have the ability to control the logging level by setting the Logger parameter.