I developed this plugin to work with the CakePHP HTMLHelper methods script() and css(). Typically Cake stores each file call separately, which makes it frustrating to have smaller CSS files for elements that aren't used much while avoiding forcing the page to load multiple assets.

The idea behind the plugin was finding a way of grabbing each asset being stored by Cake, fetching the content of each file, and concatenating it into one large, minimized file. This file could be cached in a way that any page loading that specific order of assets could access it without having to rebuild it every page view. Finally, it would need to be able to automatically update itself if it detected that any included CSS files have changed.