From f76743b912a0a02571f133b4ebd9542fd6838d86 Mon Sep 17 00:00:00 2001 From: Leonardo Merlin Date: Tue, 29 Sep 2015 10:25:51 -0300 Subject: [PATCH] Add google analytics --- gulp/build.js | 13 +++++++++++++ src/index.html | 2 ++ 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/gulp/build.js b/gulp/build.js index 886b2f3..92d1af9 100644 --- a/gulp/build.js +++ b/gulp/build.js @@ -62,6 +62,19 @@ gulp.task('html', ['inject', 'partials'], function () { .pipe($.useref()) .pipe($.revReplace()) .pipe(htmlFilter) + // production + .pipe($.if($.util.env.production, $.replace('', ([ + '' + ]).join('\n')))) + // staging + // .pipe($.if($.util.env.staging, $.replace('', ''))) .pipe($.minifyHtml({ empty: true, spare: true, diff --git a/src/index.html b/src/index.html index c6644d1..5dd1253 100644 --- a/src/index.html +++ b/src/index.html @@ -63,5 +63,7 @@ + + -- libgit2 0.21.2