I want to be able to include blocks in index.html. For example: @@ include ('_ include / page_head.html') And so that the file with the blocks remains in the development folder and is tracked in the watch watch. And here are my tasks
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); });