Line 109 of index.js joins HTML file CWD and search paths. So if file.cwd is kind of /a/b/c we'll have following search path:
/a/b/c/{.tmp/serve,src}
Then, we create search pattern for node-glob on line 116. And if we run path.join() for search path and ../vendor/some/file.css, we'll get the following:
Hello! Recently I found error in
gulp-useref@3.0.3
which leads to bad path resolution and unfortunately to plugin error.Imagine we have alternative paths and one of those paths has file separator:
Line 109 of
index.js
joins HTML file CWD and search paths. So iffile.cwd
is kind of/a/b/c
we'll have following search path:Then, we create search pattern for
node-glob
on line 116. And if we runpath.join()
for search path and../vendor/some/file.css
, we'll get the following:/a/b/c/{.tmp/vendor/some/file.css
And this leads to error.
P.S.: OS X, node 4.2.2, npm 2.14.7