Skip to content

Instantly share code, notes, and snippets.

@hyokosdeveloper
Forked from floatdrop/gulpfile.js
Created January 6, 2021 23:22
Show Gist options
  • Save hyokosdeveloper/efac247e4179d1207f64c058d61842d5 to your computer and use it in GitHub Desktop.
Save hyokosdeveloper/efac247e4179d1207f64c058d61842d5 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