From: alxscms Date: Wed, 19 Oct 2016 07:58:05 +0000 (+0200) Subject: Set maxLineLength for htmlmin to 78 char X-Git-Tag: v2.3.0~7^2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d83bd0d8d6028dfc21af2f505f4c64fb5e101065;p=thirdparty%2Ffoundation%2Ffoundation-emails.git Set maxLineLength for htmlmin to 78 char 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. --- diff --git a/gulpfile.js b/gulpfile.js index 57007954..8f045592 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -216,7 +216,8 @@ function inliner(css) { .pipe($.injectString.replace, '', '') .pipe($.htmlmin, { collapseWhitespace: false, - minifyCSS: false + minifyCSS: false, + maxLineLength: 78 }); return pipe();