Can we get the link changed to the GitHub repo? There's no such link on the given page.
There's also no additional info such as if this works on SPA type websites, or if it's just doing naive curl scraping. How does it handle link depth determination?
Should work on "SPA" sites, though it uses PhantomJS, a "dead" project. It loads a page, listens for CSS mimetypes to build an array of URLs to pull down and concat.
If anyone wants something more specific that gets a section's CSS and all associated styles, I built an extension for that called SnipCSS.
https://chrome.google.com/webstore/detail/snipcss/hbdnoadcma...
My extension doesn't download or parse CSS stylesheets to get styles, I use the Devtools protocol https://chromedevtools.github.io/devtools-protocol/tot/CSS/