From 6676810f7ac61399468099ecd0fa0fcd5d62cedd Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 20 Nov 2015 23:02:31 +0100 Subject: [PATCH] set JEKYLL_ENV correctly --- gulpfile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 2e1a4894..9d2fd43f 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -125,10 +125,13 @@ gulp.task('clean', function(done) { // Jekyll // gulp.task('jekyll', function(cb) { + browser.notify('Compiling Jekyll'); + var spawn = require('child_process').spawn; if (isProduction) { - var jekyll = spawn('bundle', ['exec', 'jekyll', 'build', '--lsi', 'JEKYLL_ENV=production'], { stdio: 'inherit' }); + process.env.JEKYLL_ENV = 'production'; + var jekyll = spawn('bundle', ['exec', 'jekyll', 'build', '--lsi'], { stdio: 'inherit' }); } else { var jekyll = spawn('bundle', ['exec', 'jekyll', 'build', '--config', '_config.yml,_config.dev.yml', '--drafts', '--future', '--incremental'], { stdio: 'inherit' }); }