Hi. I'm trying to use Astro as a static site generator to produce some HTML email and I can't stop it from inserting two stylesheets in the final email. I am using only a global stylesheet and have no CSS defined in any of the components and yet I still get these two link elements in the final output HTML when built with npm run build. Any idea where these are coming from?
#Is there a way to stop Astro inserting unnecessary stylesheets?
4 messages · Page 1 of 1 (latest)
Apologies, the first stylesheet is valid, and is the stylesheet I am imporing globally in the layout file. The second one is the only invalid one:
The css selector in that second stylesheet [data-astro-image] does not appear in the source for the project at all so it must be somehow built in to Astro.
Just curious, what is in the image.CVYE6UPY stylesheet? That might give you an idea of where it is coming from.
A word of caution, I don't believe that most email clients currently support external stylesheets. You might need to find a way to produce a style block in the head of your generated html or inline the styles for your tables.