You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Minifying would be nice indeed, and I agree that this should be an option.
In your example hermes.Config is the same struct as hermes.Hermes. We could just add a new bool member in the struct for minifying the theme. It would avoid API breaking changes.
Or another (better?) solution is to enhance GenerateHTML function (you won't minify plain text) with new parameter(s). There are solutions for this new parameter to be optional, like the option... syntax, in order to avoid breaking changes.
I thought minifying should be done only once, when reading the theme. That's why it needs to be done in the New() function. Running minifier each time we send an email is an overkill.
Changing API won't be a problem - you just need to make a "major" release.
mkodrats
added a commit
to mkodrats/hermes
that referenced
this issue
Apr 16, 2021
Hi!
Would you consider minimizing the html/css themes?
For example we could:
The text was updated successfully, but these errors were encountered: