diff --git a/gulpfile.js b/gulpfile.js
index d655398b..b2c620fa 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -81,6 +81,12 @@ gulp.task('clean', function () {
del.sync('./output_*/assets/fonts/*');
});
+gulp.task('minify-prod-html', function() {
+ gulp.src('output_prod/**/*.html')
+ .pipe(plugins.htmlmin({ collapseWhitespace: true }))
+ .pipe(gulp.dest('output_prod'));
+});
+
gulp.task('build', ['clean', 'styles', 'scripts', 'fonts']);
gulp.task('default', ['build', 'watch']);
diff --git a/package.json b/package.json
index 26126d87..60e360da 100644
--- a/package.json
+++ b/package.json
@@ -3,6 +3,7 @@
"del": "^2.2.0",
"gulp": "^3.9.0",
"gulp-concat": "^2.6.0",
+ "gulp-htmlmin": "^1.3.0",
"gulp-if": "^2.0.0",
"gulp-imagemin": "^2.4.0",
"gulp-livereload": "^3.8.1",
diff --git a/publish.sh b/publish.sh
index 4c56f71a..4ba50c83 100755
--- a/publish.sh
+++ b/publish.sh
@@ -11,5 +11,8 @@ gulp build --production
./vendor/bin/sculpin generate --env=${ENV} --clean --no-interaction
if [ $? -ne 0 ]; then echo "Could not generate the site"; exit 1; fi
+# Minify HTML.
+gulp minify-prod-html
+
rsync -av --delete output_${ENV}/ ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}
if [ $? -ne 0 ]; then echo "Could not publish the site"; exit 1; fi
diff --git a/source/_layouts/default.html.twig b/source/_layouts/default.html.twig
index c375a6e4..f33622d8 100644
--- a/source/_layouts/default.html.twig
+++ b/source/_layouts/default.html.twig
@@ -99,15 +99,7 @@
{% endif %}
{% if site.google_analytics_tracking_id %}
-
+
{% endif %}