Skip to content

Version 0.2.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@Gigabyte5671 Gigabyte5671 released this 29 May 03:22
· 125 commits to main since this 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.