mjmlio / gulp-mjml

Add Gulp to your MJML workflow!
MIT License
162 stars 37 forks source link

Option to minify HTML output #13

Closed tameroski closed 7 years ago

tameroski commented 7 years ago

It would be great to be able to use MJML's built-in minify option, unless using another minifier (like gulp-htmlmin) is OK, in a matter of compatibility with email clients. But i'm not sure about what options to set.

tameroski commented 7 years ago

For the record : looks like MJML is using html-minifier with options : collapseWhitespace: true, removeEmptyAttributes: true, minifyCSS: true