Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function validateHtml() {
if (isProdBuild()) {
return gulp.src(sourceFiles)
.pipe(htmllint())
.pipe(gulp.dest(settings.destinations.dev.html));
}
return gulp.src(sourceFiles)
.pipe(htmllint())
.on('error', onError)
.pipe(gulp.dest(settings.destinations.prod.html));
}