Skip to content

Instantly share code, notes, and snippets.

@floatdrop
Last active January 6, 2021 23:22
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save floatdrop/8246461 to your computer and use it in GitHub Desktop.
Save floatdrop/8246461 to your computer and use it in GitHub Desktop.
gulp.src - working with multiple source in one task
// npm i gulp event-stream
var gulp = require('gulp');
var es = require('event-stream');
gulp.task('test', function(cb) {
return es.concat(
gulp.src('bootstrap/js/*.js')
.pipe(gulp.dest('public/bootstrap')),
gulp.src('jquery.cookie/jquery.cookie.js')
.pipe(gulp.dest('public/jquery'))
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment