How to use gulp-html - 1 common examples

To help you get started, we’ve selected a few gulp-html examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github micromata / generator-baumeister / app / templates / gulp / tasks / validate-html.js View on Github external
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));
}

gulp-html

gulp plugin for HTML validation, using the Nu Html Checker (v.Nu)

MIT
Latest version published 1 year ago

Package Health Score

57 / 100
Full package analysis

Popular gulp-html functions