Skip to content

projectwallace/extract-css

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extract CSS

Get all the CSS from a webpage.

Platform: Now V2 Project: Wallace

The problem

The folks from CSS Stats have created get-css, a package to get all the CSS from a given webpage. One downside, however, is that it only works for server side rendered applications.

The solution

This package uses an actual browser under the hood to get all the CSS and exposes an HTTP endpoint that accepts a url to get the CSS from.

Local testing

I have no idea how local testing for Now is supposed to work, so I created a tiny HTTP server in dev.js that calls the actual function that gets deployed. Run ENV=dev npm run dev to run a local version of the function for local testing.

Deployment

Using Now: now.

Credits

About

Extract all CSS from a webpage, packaged as a Now V2 Lambda

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •