]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
Set maxLineLength for htmlmin to 78 char
authoralxscms <alexiscamus60@gmail.com>
Wed, 19 Oct 2016 07:58:05 +0000 (09:58 +0200)
committerTim Hartwick <tdhartwick2@gmail.com>
Wed, 19 Apr 2017 21:11:45 +0000 (14:11 -0700)
As stated here https://www.emailonacid.com/blog/article/email-development/line-length-in-html-email, setting max line length to 78 char prevents some email clients in some cases to truncate, or disastrously wrap lines which may cause problems in html rendering.

gulpfile.js

index 570079545ac1e4ad12509403e41256d59c225e6a..8f045592e5672735b3b1216556e64bfd631036bc 100644 (file)
@@ -216,7 +216,8 @@ function inliner(css) {
     .pipe($.injectString.replace, '<!-- <style> -->', '<style>'+mqCss+'</style>')
     .pipe($.htmlmin, {
       collapseWhitespace: false,
-      minifyCSS: false
+      minifyCSS: false,
+      maxLineLength: 78
     });
 
   return pipe();