nochso / html-compress-twig

Twig extension for compressing HTML and inline CSS/JS using WyriHaximus/HtmlCompress
Other
81 stars 19 forks source link

All rules that uses custom CSS properties is removed #14

Open Grawl opened 5 years ago

Grawl commented 5 years ago

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>
WyriHaximus commented 4 years ago

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.