diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 298cb50..cd3d483 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -125,7 +125,13 @@ export const jekyll = (done) => { const jekyll = cp.execFile('bundle', ['exec', jekyll_options], { stdio: 'inherit' }) - jekyll.on('error', (error) => onError() ).on('close', done) + const jekyllLogger = (buffer) => { + buffer.toString() + .split(/\n/) + .forEach((message) => console.log(message)) + } + + jekyll.stdout.on('data', jekyllLogger).on('close', done) }