Хочу чтобы в index.html можно было инклудить блоки. Например так:
@@include('_include/page_head.html')
И чтобы файл с блоками оставался в папке разработки и отслеживался в таске watch А вот мои таски
gulp.task('fileinclude', function() {
gulp.src('src/_include/*.html')
.pipe(fileinclude({
prefix: '@@',
basepath: '@file'
}))
.pipe(concat('page.html'))
.pipe(gulp.dest('src/')); //выгружаем файл
});
gulp.task('watch',['browser-sync', 'fileinclude', 'less', 'scripts'], function() {//
gulp.watch('src/less/**/*.less', ['less']);
gulp.watch('src/*.html', browserSync.reload);
gulp.watch('src/js/**/*.js', browserSync.reload);
});