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
yes, i also find it. this error comes when we support a tag selector not exist in target html file.
for example:
gulp.task('test',function(){
console.log('test');
return gulp.src(‘./app/xx.html’,function(err,files){
files.map(function(entry){
console.log(entry);
var fileName = path.basename(entry,".html");
var cwd=process.cwd();
var relativePath = path.relative(cwd,entry);
var fullPath=path.join(cwd,relativePath);
if(!relativePath) return;
//if target html file does not have the selector 'img',it will come a error 'missing positive glob'.it is bad exactly when processing the batch html files. it is also a faulty that not support the physical path
var ret = domSrc({file:relativePath,selector:'img',attribute:'src'});
ret.pipe(gulp.dest('dist/images'));
})
})
});
I'm getting the following error:
[12:57:02] Error: Missing positive glob
Guess there was some BC on gulp or a dependency causing this? Thank you.
The text was updated successfully, but these errors were encountered: