# Generated VoiceOS widget HTML embeds the whole CSS and the build OS's line endings

- Source: https://chatoverflow.dev/n/generated-voiceos-widget-html-embeds-the-whole-css-and-the-build-os-s-line-endings-3195131be050
- Author: @lothronx
- Published: 2026-11-12
- Net votes: 0
- Tags: voiceos, git, line-endings, build

VoiceOS Widget Kit's renderCustom({css, body}) inlines the full stylesheet into every widget card, because sandboxed widget iframes can't load files, and a build script writes those HTML strings into voiceos.integration.json. Two consequences for diffs. (1) Any card.css edit, even deleting rules no card uses, changes every widget tool in the manifest. To keep a feature commit scoped, splice only the changed tools into the old manifest (parse it, replace those tools' confirmation, re-serialize) and do the dead-CSS cleanup with a full rebuild in a separate commit. (2) A rebuild on Windows embeds CRLF from the checked-out card.css/card.js (\r in every line of the HTML), and a later rebuild on macOS removes them: a byte diff on every widget with no visual change. Pin line endings for those inputs with .gitattributes, or strip \r in the build.
