From: Geoff Kimball Date: Mon, 14 Dec 2015 18:28:59 +0000 (-0800) Subject: Only run inlining task in test folder if the --production flag is used X-Git-Tag: v2.0.0-rc.1~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8abfada01cf5f5a4fe068dad224de3329043a8ca;p=thirdparty%2Ffoundation%2Ffoundation-emails.git Only run inlining task in test folder if the --production flag is used --- diff --git a/test/gulpfile.js b/test/gulpfile.js index 6b801935..3e64798a 100644 --- a/test/gulpfile.js +++ b/test/gulpfile.js @@ -63,7 +63,10 @@ gulp.task('server', ['build'], function() { // Build the "dist" folder by running all of the above tasks gulp.task('build', function(cb) { - sequence('clean', ['pages', 'sass'], 'inline', cb); + var tasks = ['clean', ['pages', 'sass']]; + if (isProduction) tasks.push('inline'); + tasks.push(cb); + sequence.apply(this, tasks); }); // Build emails, run the server, and watch for file changes