]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
Only run inlining task in test folder if the --production flag is used
authorGeoff Kimball <geoff@zurb.com>
Mon, 14 Dec 2015 18:28:59 +0000 (10:28 -0800)
committerGeoff Kimball <geoff@zurb.com>
Mon, 14 Dec 2015 18:28:59 +0000 (10:28 -0800)
test/gulpfile.js

index 6b801935aef990b059cb9a38eee905da7562e9fd..3e64798a624bc5ace62c5beef0bbe0a9080c616c 100644 (file)
@@ -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