I'm looking for a tool that will embed
link CSS files into the
This tool would scan the
.html file. It would replace a line like:
<link rel="stylesheet" href="main.css" type="text/css" />
with the contents of the file
main.css (wrapped in a
<style> element). It would re-write the
.html file with the embedded CSS code from file
I have found tools that "inline" the CSS within HTML elements (
<div style="...">). These are intended for email. I do not want those tools.
I want a tool that would copy the CSS file into a single
<style> element within the
This tool should have a CLI, run on Linux, and be free (no payments, no shareware).