mirror of
https://github.com/openstf/stf
synced 2025-10-03 17:59:28 +02:00
Fix gulp jade
so it doesn't complain on undefined locals.
This commit is contained in:
parent
fe7452e9f7
commit
b38972eeeb
1 changed files with 9 additions and 1 deletions
10
gulpfile.js
10
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()
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue