Updated Nov 18, 2022

npm version badge

Plugin for the Eleventy static site generator that runs PurgeCSS on the generated site. PurgeCSS is a tool that removes unused CSS selectors from stylesheets, which can significantly reduce the output size of websites.

I originally made it in order to reduce this very website’s Tachyons stylesheet from 72 KB to 4 KB, but figured it might be useful to others in a similar situation. It’s listed as a community plugin on 11ty.dev.