2 ms·
So if I have a large site driven by a web content management system and each page uses different parts of the css, how can we leverage this? Does it mean we ha
by sarwarbhuiyan 14y ago
So if I have a large site driven by a web content management system and each page uses different parts of the css, how can we leverage this? Does it mean we have to generate different css files for each page? or have a dynamically generated css file for each page?
- deanclatworthy 14y agoYou can't. The only way for this tool to be of use is if you have a tiny amount of pages that you can run it against.
- peterbe 14y agoYour choice. You can feed mincss a bunch of different URLs and or different .html files and it'll work out the CSS in that. (Note: even if you feed it the raw HTML as a string you need to give it a URL) Or, you do one page at a time. However that's slow and will only be an option if you have serious caching. See http://www.peterbe.com/plog/mincss-in-action http://www.peterbe.com/plog/mincss-in-action