github gildas-lormeau/single-file-cli v2.6.3

2 hours ago

SingleFile CLI 2.6.3

Core

Updated to single-file-core 1.5.118, which brings:

  • fonts declared inside a frame are no longer all removed when the frame's content cannot be read. Such a frame is re-parsed from its srcdoc, and a document that is never rendered says nothing about the fonts it draws with, so text in those frames fell back to a system font
  • replacing a stylesheet element keeps the attributes that identified it: an id a script looks up, a class a selector matches, data-* and title. Plain saves lost them on every page with an external stylesheet
  • a stylesheet shared by duplicate <style> elements is stored once in an archive, instead of once as the entry the links point at and once in the page
  • saving an archive no longer asks the captured site for a zip worker three times. The file was never there, and the archive was always written on the main thread anyway
  • a font-family naming a custom property whose value names another custom property is resolved when removing unused fonts
  • a font value that cannot be resolved no longer switches off font removal for the whole document. The fonts the page actually rendered decide instead, so a page holding one unreadable value is smaller
  • vendor-prefixed values the browser supports are kept

Co-authored by Claude (Claude Code)

Don't miss a new single-file-cli release

NewReleases is sending notifications on new releases.