Why doesn't gulp find my bootstrap css files?

449 views Asked by At

My gulp file has this in it:

gulp.task('bower2',function () {
   return gulp.src(mainBowerFiles('**/*.css'), {debugging:true})
      .pipe(gulp.dest(dist_path+'/styles'))
      ;
});

But it's not finding the CSS files, none of them. I've been successful with the js files though.

I'm not trying to do anything fancy, just build all of the css files into a single vendor.css file (in the case, font-awesome and bootstrap, that's it).

Thanks, Nick

1

There are 1 answers

0
Dima L On

Try like this.

gulp.task('bower2',function () {
   return gulp.src('**/*.css')
      .pipe(gulp.dest(dist_path+'/styles'));
});

For some reason gulp has issue with mainBowerFiles() function when you are trying to use it for css task.