From b38972eeeb4322f65b0a00c1fb101e628f0f3c89 Mon Sep 17 00:00:00 2001 From: Gunther Brunner Date: Wed, 3 Sep 2014 19:39:28 +0900 Subject: [PATCH] Fix `gulp jade` so it doesn't complain on undefined locals. --- gulpfile.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 77605d12..e0a75256 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -154,7 +154,15 @@ gulp.task('jade', function (cb) { gulp.src([ './res/**/*.jade', '!./res/bower_components/**' ]) - .pipe(jade()) + .pipe(jade({ + locals: { + // So res/views/docs.jade doesn't complain + markdownFile: { + parseContent: function() { + } + } + } + })) .pipe(gulp.dest('./tmp/html/')) cb() })