npm Juice Converts CSS in style Tags to Inline Styles - Convenient for HTML Emails
I’ll introduce npm Juice, which converts CSS within style tags to inline styles, making it convenient for creating HTML emails.
When you execute the following JavaScript code:
var juice = require('juice');
var result = juice("");
The result contains HTML converted to inline styles like this:
Incidentally, while Gmail previously didn’t support style tags, they have been supported since October 2016.
There’s also an online site that converts style tags to inline styles.
That’s all from the Gemba where I wanted to convert style tags to inline CSS for HTML email creation.