Skip to content
This repository has been archived by the owner on Dec 2, 2018. It is now read-only.

Nodeserver for uncss #80

Closed
lukasoppermann opened this issue Apr 22, 2017 · 1 comment
Closed

Nodeserver for uncss #80

lukasoppermann opened this issue Apr 22, 2017 · 1 comment

Comments

@lukasoppermann
Copy link

Hey, I really like the idea of uncss and this packages is pretty neat!

so I know something was once mentioned in #19 but it has been quite a while. I think it is pretty common to create pages in the fly, for example when using a cms system.

It would be extremely helpful and awesome if this package would spin up a server and crawl through all pages to check the css.

Do you think something like this is possible?

@ben-eb
Copy link
Owner

ben-eb commented Apr 26, 2017

Hi @lukasoppermann,

I think it's most likely out of scope for this project, but you could certainly use some crawler on your site to assemble a list of pages for UnCSS to run. You could certainly try something like https://github.com/missinglink/huntsman to do this - if you save the res.uri for each crawled page on your own site.

https://github.com/missinglink/huntsman/blob/master/examples/basic.js#L11

Then once you have the links assembled you can feed that into UnCSS. Hope this helps!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants