Reputation: 9847
I noticed some time ago that many big sites sometimes serve their CSS and JS files in a surprisingly small number (even one single file) and with strange alphanumeric names. What I thought was that these filenames were hashes, which in turn lead me to suspect that:
Some internet research showed me that I was right and this approach is somewhat existent and valued, and I would like to implement it in a WAMP/LAMP site I'm developing - a site that, for its modular plugin structure, serves often a lot of tiny and medium-sized CSS and JS files.
css/img
dir) because of potential filename conflicts. This would mean also parsing the CSS in some way. How can I solve this?Thank you for your attention.
Upvotes: 0
Views: 182
Reputation: 26
I using is a very good library https://github.com/mrclay/minify for this. Its library automaticaly minify css and js files into one file and rebuild cache on modification files.
Upvotes: 1