const download = require('gulp-download-stream'); gulp.task('downloadScripts', function() { return download([ 'https://***/***.min.js', ... ]).pipe(gulp.dest('vendor')); });