html-compress-twig
html-compress-twig copied to clipboard
All rules that uses custom CSS properties is removed
Input:
{% htmlcompress %}
<style>
.foo {
--a: 1em;
padding: var(--a);
color: blue;
}
</style>
{% endhtmlcompress %}
Expected output:
<style>.foo {--a: 1em;padding: var(--a);color: blue;}</style>
Actual output:
<style>.foo {--a: 1em;color: blue;}</style>
Just release 3.0.0 that includes the fix for this. Also opened https://github.com/nochso/html-compress-twig/pull/16 to get this version available in that package.