csscombine(1)

πŸ’– csscombine β€” the manual, but make it make sense πŸ’–

csscombine(1) · part of the cssutils squad · section 1 of the manual, bestie 🫢


✨ NAME ✨

csscombine β€” the little utility whose whole personality is smooshing a bunch of stylesheets together into one. πŸ’…


🌸 SYNOPSIS 🌸

csscombine [options...] path...

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: you've got a main stylesheet, and that main sheet pulls in other sheets with @import rules. csscombine goes and grabs all of them and merges everything into one single combined sheet. iconic behavior fr fr. πŸ‘‘

Nested @import rules get resolved too β€” and ngl that's been a thing ever since cssutils 0.9.6a1, so if you're on something older than that, this is your sign to update bestie. 😭

The resulting combined sheet (which you can optionally minify, if you're feeling spicy) gets sent to stdout. Info messages and error messages? Those get handled by the normal cssutils log, no extra drama. πŸ“

Also β€” plot twist β€” csscombine can double as an encoding glow-up. If you hand it a target encoding, it'll change the encoding of the stylesheet for you. ✨


πŸŽ€ OPTIONS πŸŽ€

  • -h, --help β€” shows the help message and then dips. bye πŸ‘‹
  • -m, --minify β€” saves a minified version of the combined files. default is false, so no minifying unless you ask for it.
  • -s SOURCEENCODING, --sourceencoding=SOURCEENCODING β€” the encoding of the input, and it defaults to "css". if you actually give it a value, it overwrites other encoding info β€” yes, even stuff like @charset declarations. so use with intent, bestie πŸ’€
  • -t TARGETENCODING, --targetencoding=TARGETENCODING β€” the encoding of the output. default is "UTF-8" πŸ’–
  • -u URL, --url=URL β€” a URL to parse. heads up: if URL is given, then path... gets completely ignored. like, not even looked at. πŸ™ˆ

🌈 SEE ALSO 🌈

/usr/share/doc/python-cssutils-doc/docs/html/docs/index.html

go read it, it's giving documentation ✨


mwah πŸ’‹ this was csscombine(1) from the cssutils manual, dated April 9, 2011. yes, that date is ancient in internet years but the utility still eats. periodt. πŸ«ΆπŸ’œ