我会用gulp-flatten:
var flatten = require('gulp-flatten');gulp.task('copy-fonts', function() { gulp.src('dependencies*.{ttf,woff,eof,svg}') .pipe(flatten()) .pipe(gulp.dest('build/fonts'));});至于如何在内部完成,请检查:https : //github.com/armed/gulp-
flatten/blob/master/index.js



