Last active
January 6, 2021 23:22
-
-
Save floatdrop/8246461 to your computer and use it in GitHub Desktop.
gulp.src - working with multiple source in one task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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