connect asset manager (click the link to the docs) will combine separate CSS/JS files into a single file, compress them, convert images to base64 for embedding with data URIs into your CSS files, minify the code, etc
From the README:
What does it allow you to do?
- Merge and minify CSS/javascript files
- Auto regenerates the cache on file change so no need for restart of server or manual action.
- Run pre/post manipulation on the files
- Use regex to match user agent so you can serve different modified versions of your packed assets based on the requesting browser.
- Supplies a reference to the modified dates for all groups through assetManager().cacheTimestamps[groupName] as well as md5 hashes assetManager().cacheHashes[groupName] which can be used for cache invalidation in templates.
Wildcard add files from dir