News for hackers. Stuff that matters.
Re:Mincss "clears the junk out of your CSS" by sarwarbhuiyan on Tuesday January 22, 2013 @05:42AM (#5096482)
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?
Re:Mincss "clears the junk out of your CSS" by peterbe on Tuesday January 22, 2013 @09:37AM (#5097262)
Your 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

Re:Mincss "clears the junk out of your CSS" by deanclatworthy on Tuesday January 22, 2013 @06:52AM (#5096640)
You 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.