peterbe / mincss

Tool for finding out which CSS selectors you're NOT using.
https://peterbe.github.io/mincss/
BSD 3-Clause "New" or "Revised" License
855 stars 92 forks source link

Mincss does not crawl links #22

Closed kursusHC closed 10 years ago

kursusHC commented 10 years ago

Hi,

and thanks for this great tool.

I can't find a way to crawl the whole site starting from the index page.

mincss http://www.mysite.com 

will crawl index but not other linked pages like

http://www.mysite.com/sub 

Despite a menu clearly linking to it on the index (absolute URLs).

Is it normal or am I missing something ? Is there a way to use a text file filled with URLs or so ?

Thanks

peterbe commented 10 years ago

I think mincss only deals with the one URL you give it. It does not crawl.

If you want it to crawl, I think it could be a separate tool that is specialized in crawling and for each URL it encounters it would use mincss.

kursusHC commented 10 years ago

Ok thanks for your answer.

I have trouble seeing another tool could pair properly with mincss : what about selectors found in several pages ? I guess they would be duplicated.

Is there any way to specify multiple URLs from the command line ?

mincss http://mysite.com http://mysite.com/sub 

Doesn't seem to work.