Comment

Peter Bengtsson

It doesn't support that. Sorry.

But if you only have a little bit of Javascript like that you can specifically set which selectors are only used by Javascript. See https://github.com/peterbe/mincss/tree/master/example

Parent comment

prdsh

Just have a doubt... How will the program work if in my javascript code i assign a class to a div element which has not been assigned to it in html. like minimize and maximize links in pages. i will toggle between "minimize" and "maximize" classes in js code. minicss will look for css selectors in js files for a match?

Replies

prdsh

Thanks for the info. Great useful stuff this. Will use this in my projects.