how base option affects gulp.src & gulp.dest

Viewed 20826

I encountered an issue trying to copy a set of files and when calling .dest('some folder') the entire folder structure was lost.

I searched and found an answer suggesting that I should provide {base:'.'} as an option on my call to gulp.src(...) to resolve this issue.

The documentation for gulp.src options only says that its options are:

Options to pass to node-glob through glob-stream.

Looking into node-glob documentation for its options base is not listed there at all.
And the glob-stream options documentation only states that

"the Default is everything before a glob starts (see glob-parent)"

So no much help here either.

So, what effect does the base option passed to gulp.src have on the viny6l files in the created stream and how does it effect the gulp.dest command ?

1 Answers
Related