gulp html-如何验证外部页面
我试图通过gulphtml验证外部测试服务器的html 我不明白如何为非本地站点配置“src”值 文档中的示例为:gulp html-如何验证外部页面,gulp,Gulp,我试图通过gulphtml验证外部测试服务器的html 我不明白如何为非本地站点配置“src”值 文档中的示例为: const html = () => { return gulp.src('src/index.html') .pipe(validator()) .pipe(gulp.dest('dist/')); }; 我想将'src/index.html'替换为'https://example.com" 当我尝试时,我得到一个错误: Error: File
const html = () => {
return gulp.src('src/index.html')
.pipe(validator())
.pipe(gulp.dest('dist/'));
};
我想将'src/index.html'替换为'https://example.com"
当我尝试时,我得到一个错误:
Error: File not found with singular glob: /path/to/project/https://example.com