Closed dynchen closed 8 years ago
No it's not, hence the new version number. It throws the error now if you have a bad file path, so you have a bad file path somewhere. This was a change made in the vinyl-fs module.
Well ,in my project, the glob.sync function might not return a correct file path array.
something like {.tmp/serve,src}, the latter src will be ignored. And in some case ,'{' may be added to the file path incorrectly.
I'm not sure what you are asking. If you have a specific question or problem, please post a code example.
I got this error message, the problem was one of the paths in my css bundle was incorrect. In the previous version I suppose this was just ignored - now its not.
I don't mind the change but maybe a more helpful error message would be nice :)
Yeah, I found it's indeed the bad file path that cause my problem.Sorry for my mistake ,thx.
Add this at line 113 to easily see which asset is causing the problem.
var fs = require('fs');
fs.stat(pattern, function(err, stat) {
if(err) {
console.log('[INVALID PATH] ' + err.path);
}
});
Can this be closed?
I would. The question has been answered
Of course
When I update to the 2.0 , the old code doesn't work. The error msg is : File not found with singular glob. why ? Thx.