2014-09-11 48 views
0

我想一個文件/stubs/foo.txt複製的/something/所有子目錄複製文件,例如咕嘟咕嘟 - 所有子目錄中

/something/foo.txt 
/something/else/foo.txt 

我想:

gulp.task('copy', function() { 
    return gulp.src('/stubs/foo.txt') 
     .pipe(gulp.dest('/something/**/*')); 
}); 

但似乎咕嘟咕嘟不支持目標文件夾中的變量。

+0

gulp.dest()不支持Globes。 https://github.com/gulpjs/gulp/blob/master/docs/API.md – Doodlebot 2014-09-11 18:05:27

回答

0

不是一個理想的解決方案,但可以使用多個目標管道。