You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using gulp-file-include to move repetitive parts of my html pages (like page header and footer) to outside files. However, gulp-html does not seem to use the compiled version for its validation, because it gives me errors about missing title element within head (which is inside one of the partials).
However, gulp-html does not seem to use the compiled version for its validation, because it gives me errors about missing title element within head (which is inside one of the partials).
@kpobococ I know this is an old issue, but I ran into it today while using gulp-html for the first time. I solved it by moving validation to a separate task.
gulp.task('html',function(){returngulp.src('src/*.html')// Build HTML here using something like a static site generator.pipe(gulp.dest('dist/'));});gulp.task('validate',function(){returngulp.src('dist/*.html').pipe(validator()).pipe(gulp.dest('dist/'));});
To me it seems like this defeats the purpose of Gulp streams... you should just be able to .pipe the compiled HTML into the validator(). For whatever reason, it seems to only work in a separate task.
For whatever reason, it seems to only work in a separate task.
I think he doesn't have a job, nor does he have a job in a separate task, sometimes it only reports running errors.
I tried to change the checked html code to a mess, and he didn't give any hints. @XhmikosR
I'm using gulp-file-include to move repetitive parts of my html pages (like page header and footer) to outside files. However, gulp-html does not seem to use the compiled version for its validation, because it gives me errors about missing title element within head (which is inside one of the partials).
Here's a shortened version of my gulpfile.js:
Am I missing something or is it a bug?
The text was updated successfully, but these errors were encountered: