Code-split your CSS in Eleventy.
Eleventy Assets is a utility designed for managing assets in your Eleventy projects. Although it’s been retired and replaced by the Eleventy Bundle Plugin, this npm package can still provide valuable functionalities for those looking to enhance their site’s asset management. With a focus on generating and inlining code-split CSS specifically tailored for individual pages, Eleventy Assets offers a straightforward implementation without the need for complex plugin setups.
This tool is particularly beneficial for developers working on Eleventy projects who want to efficiently manage their CSS assets. With its compatibility for standalone use or in conjunction with other Eleventy plugins, it provides flexibility and ease of integration.
getCSS filter that outputs the code-split CSS relevant to the current URL, ensuring each page only loads necessary styles../sample/css/ directory, promoting organized asset management.