maizzle / framework

Quickly build HTML emails with Tailwind CSS.
https://maizzle.com
MIT License
1.2k stars 48 forks source link

Image optimization #1285

Closed jsbrain closed 1 month ago

jsbrain commented 1 month ago

Hey @cossssmin,

I was wondering if there are any plans to add automatic image optimization to the framework or do you have any recommendation how one would plug this into the framework as of now?

cossssmin commented 1 month ago

You could use something like sharp in the afterBuild event, applying it to all image files in-place.