14 lines
357 B
JavaScript
14 lines
357 B
JavaScript
|
|
import gulp from 'gulp';
|
||
|
|
const { src } = gulp;
|
||
|
|
import config from '../config.js';
|
||
|
|
import plumber from '../modules/plumber.mjs';
|
||
|
|
import htmlValidator from 'gulp-w3c-html-validator';
|
||
|
|
|
||
|
|
function validate() {
|
||
|
|
return src(config.dev + '**/*.html')
|
||
|
|
.pipe(plumber())
|
||
|
|
.pipe(htmlValidator())
|
||
|
|
.pipe(htmlValidator.reporter());
|
||
|
|
}
|
||
|
|
|
||
|
|
module.exports = validate;
|