gulp.task('jade', function() {
gulp.src('./_jade/**/*.jade')
.pipe(changed('./dist/', {extension: '.html'}))
.pipe(gulpif(global.isWatching, cached('jade')))
.pipe(jadeInheritance({basedir: './_jade/'}))
.pipe(filter(function (file) {
return !/\/_/.test(file.path) && !/^_/.test(file.relative);
}))
.pipe(plumber())
.pipe(jade({
pretty: ' '
}))
.pipe(gulp.dest('./dist/'))
.pipe(browserSync.reload({stream:true}));
});