I'm feeding Gulp a directory with gulp.src(directory + '/*.html')
. The thing is, I need to check if an equivalent .json
file exists with it (e.g., foobar289.html + foobar289.json), but there doesn't appear to be a way to get the path of the current file. How might I do this?
via user1807782
No comments:
Post a Comment