From cce55043933dd9da4a17cc60048e74dbf278758f Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 21 Dec 2015 15:53:54 +0100 Subject: [PATCH] set JEKYLL_ENV during production build --- gulpfile.js | 1 + 1 file changed, 1 insertion(+) diff --git a/gulpfile.js b/gulpfile.js index 0492d44..315647d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -105,6 +105,7 @@ gulp.task('jekyll', function(cb) { var spawn = require('child_process').spawn; if (isProduction) { + process.env.JEKYLL_ENV = 'production'; var jekyll = spawn('bundle', ['exec', 'jekyll', 'build'], { stdio: 'inherit' }); } else { var jekyll = spawn('bundle', ['exec', 'jekyll', 'build', '--incremental', '--drafts', '--future'], { stdio: 'inherit' });