From 52a33f2d3ebf3b42ef06b98452f5e51dbe8f644e Mon Sep 17 00:00:00 2001 From: Dan Mindru Date: Tue, 20 Oct 2015 14:01:58 +0200 Subject: [PATCH] Minify inline styles --- dist/play/signature-play.html | 4 ++++ dist/play/signature-reply-play.html | 4 ++++ package.json | 1 + src/play/head.inc.html | 4 ++++ tasks/build.js | 2 ++ 5 files changed, 15 insertions(+) diff --git a/dist/play/signature-play.html b/dist/play/signature-play.html index 23e1f5e..a27d63f 100644 --- a/dist/play/signature-play.html +++ b/dist/play/signature-play.html @@ -25,5 +25,9 @@ text-align: left; padding-bottom:20px; } + + .footer__main__col2__td__img{ + padding-left:0!important; + } }
\ No newline at end of file diff --git a/dist/play/signature-reply-play.html b/dist/play/signature-reply-play.html index ea3b472..fb6f2f3 100644 --- a/dist/play/signature-reply-play.html +++ b/dist/play/signature-reply-play.html @@ -25,5 +25,9 @@ text-align: left; padding-bottom:20px; } + + .footer__main__col2__td__img{ + padding-left:0!important; + } }
\ No newline at end of file diff --git a/package.json b/package.json index ee238c5..5116907 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "gulp-inline-css": "^3.0.0", "gulp-inline-image-html": "^0.2.1", "gulp-minify-html": "^1.0.4", + "gulp-minify-inline": "^0.1.1", "gulp-preprocess": "^1.2.0", "gulp-rename": "^1.2.2", "q": "^1.4.1", diff --git a/src/play/head.inc.html b/src/play/head.inc.html index 2b2321f..2197a50 100644 --- a/src/play/head.inc.html +++ b/src/play/head.inc.html @@ -34,5 +34,9 @@ text-align: left; padding-bottom:20px; } + + .footer__main__col2__td__img{ + padding-left:0!important; + } } \ No newline at end of file diff --git a/tasks/build.js b/tasks/build.js index 0860879..934a588 100644 --- a/tasks/build.js +++ b/tasks/build.js @@ -3,6 +3,7 @@ var gulp = require('gulp'), inlineCss = require('gulp-inline-css'), minifyHTML = require('gulp-minify-html'), + minifyInline = require('gulp-minify-inline'), preprocess = require('gulp-preprocess'), rename = require('gulp-rename'), wrench = require('wrench'), @@ -39,6 +40,7 @@ function buildTask(options){ removeStyleTags: false })) .pipe(minifyHTML({quotes: true})) + .pipe(minifyInline()) .pipe(rename(function rename(path){ path.dirname = dir; path.basename += '-' + item.id;