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

2 hours ago

SingleFile CLI 2.16.4

CLI fixes and improvements

  • single-file-core is updated from 1.6.22 to 1.6.24, see https://github.com/gildas-lormeau/single-file-core/releases/tag/v1.6.23 and https://github.com/gildas-lormeau/single-file-core/releases/tag/v1.6.24. For the CLI it means the following
  • With --remove-unused-fonts, a font named only in a nested style rule was removed, and the text fell back to another font
  • A url() in @scope, @starting-style, @keyframes or @page was not saved in the page
  • A font created by a page script with new FontFace(...) could be saved with an invalid family name
  • Removing a script, a <noscript>, a resource hint or a hidden input from the body shifted the position of the elements after it, so :nth-child() and similar selectors matched other elements
  • A page saved with --compress-content and opened in Firefox applied the stylesheets imported by <style> elements empty, so pages loading Google Fonts this way lost their fonts

Co-authored by Claude (Claude Code)

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

NewReleases is sending notifications on new releases.