Answer the question
In order to leave comments, you need to log in
Is it possible to set a single path for gulp concat?
Actually, the question is in the title.
I have a folder with a large attachment, like this:
gulp.task('js', function(){
return gulp.src(['/application/assets/js/jquery-1.11.21.min.js',
'/application/assets/js/ripples.min.js',
'/application/assets/js/lib/toastr/toastr.min.js',
'/application/assets/js/bootstrap.min.js',
'/application/assets/js/textChange.js',
'/application/assets/js/material.js',
'/application/assets/js/lib/fancybox/jquery.fancybox.pack.js',
'/application/assets/js/lib/boxLoader/js/jquery.boxloader.min.js'])
.pipe(concat('script.js'))
.pipe(gulp.dest('application/assets/build/js/'));
});
/application/assets/js/
and then just display the necessary names? return gulp.src( '/application/assets/js/' + ['jquery-1.11.21.min.js', 'ripples.min.js', ...] )
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question