Answer the question
In order to leave comments, you need to log in
Why is gulp concat not working?
there are two tasks:
gulp.task('concat', function() {
return gulp.src(['application/assets/css/bootstrap.css',
'application/assets/css/bootstrap-material-design.min.css',
'application/assets/css/ripples.min.css',
'application/assets/js/lib/toastr/toastr.min.css',
'application/assets/fonts/ionicons/css/ionicons.min.css',
'application/assets/css/landing-page.css'])
.pipe(concat('style.css'))
.pipe(gulp.dest('application/assets/build/css/'));
});
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/'));
});
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