Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to save static pages after JS has run
#15639 We want to be able to generate some pages as part of the static site build after JavaScript has run on that page. This will allow these pages to be populated with data from JavaScript but appear to progressively enhance when deployed as part of our static site. This script will fetch a list of URLs from an endpoint on the application that should be scraped with JS enabled. It will then use capybara-webkit to fetch those pages, run JS, and save those pages to disk. The target files will be in the same location as `wget` uses which will allow us to overwrite the static files already generated by `wget` with these JS-enhanced versions. Subsequent commits will need to: * Create the endpoint that this script uses to determine which URLs to scrape * Update the build script to run this after `wget` has run
- Loading branch information