#SVG favicon optimisation removes <style> tags

1 messages · Page 1 of 1 (latest)

ancient bramble
#

The SVG favicon located in the public folder gets minified on build. Which is brilliant.
However the <style> tags get removed in the process.

Using <style> tags in SVG favicons allows to change their appearance depending on the dark mode setting for example.

I want to keep this optimisation steps, but is there a way to retain the <style> tags? Or maybe the default behaviour should be to keep them.

drowsy wigeon
#

<script> or <style>?

ancient bramble
#

Ah yeah sorry, I mean <style>. I fixed it

drowsy wigeon
ancient bramble
#

Oh apologies, turns out astro-compress is the culprit