. Is there a performance hit by calling the css from the database
Yes, firing up PHP/mySQL takes time, even milliseconds count. Using statcache and url rewriting will get you real close to matching serving a static file though.
Not 100% without checking but if a resource for is set to CSS I don't think it is processed for chunks etc. Could be wrong though. Update, I was wrong, Resource with Resource Type = Document and Content Type = CSS is parsed for snippets/chunks etc.
To automate minification I route CSS and js through minify by Mr Clay. MODX ships with a copy in the manager directory. This is combined with a snippet to register files for inclusion in head or foot via MODX, a second snippet grabs the file list sends to minify for processing and combined into a single file. Essentially like minifyX I think except I don't think minifyX returns a single file.
On top of that my setup can lazy load the files so page load is faster.
Let me know if you want example code. Be interesting to see what you come up with. Any time I've looked at less/sass etc. I've concluded it's overkill for the level I work at. A hybrid option might make more sense but rough as it sounds search/replace works fine.
[ed. note: chris.dempsey78 last edited this post 9 years, 3 months ago.]