Repository navigation
feat: CSS per live stylesheet in head order, media originals on resize hosts, copy-assets and link-exceptions scripts, reconcile and review fixes - #8
Merged
Conversation
…ing image hosts, lists each variant, and marks a resized fallback
… no answer as timed out, not logged out
…e the media cache, only a 4xx/5xx original gets a stand-in, and the baseline and media gate carry and count resized
…I found through npx or not found
…n assets:copy and links:exceptions
…equals live's, an og:image the media rewrite serves, and a utility page live indexed
… styles or css-coverage run
… linked by path, so a large site no longer overflows one string
…and skips excluded paths, prefixes and exclusions match like the links gate, a rewrite must send the whole prefix off-origin, the sheet removes its stale route pages
…ch page's head order; media, multisite and unparsable sheets
…der; the e2e run serves sheets at their live paths
…--single-sheet for simple classic themes
… routes gate takes each at its live path as built
…'s media in --single-sheet; a malformed url() is left as written
…mport reaches, and the site's host variants are served from public/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Findings from the second sxsw.com run and the harvard.edu run (WordPress VIP block theme; WordPress multisite).
CSS (convert-site, parity-gates)
public/at its live path, and each head<style>block tosrc/styles/inline/; every page's head CSS list is recorded in live order andBase.astroprints it, so the cascade equals live. Both sxsw runs and the harvard run had fixed the merged-site.csscascade breakage by hand this way.--single-sheetkeeps the old merged output for simple classic themes.mediaattributes kept and print sheets never coverage-pruned; identical sheets under several paths (multisite) pruned separately; unparsable sheets kept byte for byte and listed; same pathname under different queries handled; sheets only an@importreaches are written; http/non-www links to the site's own sheets served frompublic/.baseline/css.jsonlists the captured stylesheets and the routes gate accepts them at their live paths (no--allow-extraneeded).Media (capture-site)
?w=/?resize=variant; a resized stand-in is used only when the original answers 4xx/5xx and is markedresizedthrough the baseline and the media gate. Before, a?w=1024copy could be recorded as the 3 MB original, and the Blob upload would have shipped it.Scripts the docs promised (convert-site)
copy-assets.mjs(npm run assets:copy): scripts of every kind, fonts, root icons, the web manifest, and media outside the plan prefix topublic/at live paths; VIP/_static/??a,bconcat URLs to/_static/concat/<sha1>.js; refuses sources outside the capture; skips excluded prefixes.link-exceptions.mjs(npm run links:exceptions): onelinkexception per WordPress API head link and per link already broken on live, no duplicates on rerun.Review and launch
--block-hostson shoot, styles and css-coverage (a consent manager that disables theme scripts off the live host).Verified
npm test: 844 pass, 0 fail (fixture e2e included).npm run hygieneOK, no trailers.