Version 0.2.0
Pre-release
Pre-release
Duplicate elements will now be removed from the HTML output by default. For example:
button {
content: 'Click me';
display: flex;
color: red;
}
/* ... */
button {
content: 'Click here';
color: blue;
}Will produce:
<button>Click here</button>This behaviour can be prevented by calling with duplicates set to 'preserve':
cssToHtml(css, { duplicates: 'preserve' });Note: Cascading is always maintained.