juice
juice copied to clipboard
Juice inlines CSS stylesheets into your HTML source.
Hi, I'm using juice to pack an HTML file which uses Handlebars, and I found what seems to be a bug. Here's the [reproduction](https://runkit.com/embed/jzmmmgmx0tf0). To sum it up, if we...
Hi, I want to ask about nested rules in CSS. I found the error like this `[vite] Internal server error: Cannot read properties of undefined (reading 'match')`. Maybe someone here...
Hello, we use juice to parse incoming emails and recently we got an email that causes juice to crash without any chance to catch the error. We narrowed it down...
`data-sheets-userformat='{"2":5059,"3":[null,0],"4":[null,2,15389148],"9":1,"10":1,"11":4,"12":0,"15":"Calibri"}'` and `style='font-family: "Times New Roman"'` are converted into: `data-sheets-userformat="{"2":5059,"3":[null,0],"4":[null,2,15389148],"9":1,"10":1,"11":4,"12":0,"15":"Calibri"}"` and `style="font-family: "Times New Roman""` The single quotes `'` are converted into double quotes `"`, which break the html.
I've been maintaining juice and web-resource-inliner for about ~six~ seven years now. I took over as maintainer because the package needed a lot of work to do what I needed...
We have an email template system that is needing some codeblock `{{Variables}}` placed within the CSS. e.g. ```css .button.primary { background-color: {{StoreColor}}; } ``` and I was hoping that they...
Hi, Regarding this page: https://automattic.github.io/juice I'm unable to understand what should be the input maybe pre-fill with an example?
npm i juice --save import juice from 'juice'; console.log(juice); // ƒ (html,options) console.log(juice.juiceFile); // undefined console.log(juice.juiceResources); // undefined
In backend nodejs projects the DOM types (`HTMLElement`) are only accessible if included explicitly by e.g. `"lib": ["ES2020", "dom"]` in tsconfig. Building without the included dom types gives the following...
Would be nice to support and convert css custom variables https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables