Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Commit

Permalink
Use config for bower assets (as of #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-foto committed Aug 8, 2015
1 parent a4f4abb commit 8553dac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ gulp.task('bower-css-assets', function() {

gulp.task('bower-font-assets', function() {
if (fs.existsSync(sources.bower)) {
return gulp.src(mainBowerFiles(['**/*.eot', '**/*.ttf', '**/*.woff', '**/*.woff2']))
var glob = config.sources.fonts.map(function(ext) {return '**/*.' + ext;});
return gulp.src(mainBowerFiles(glob))
.pipe(gulp.dest(path.join('dist', 'fonts')));
}
});
Expand Down

0 comments on commit 8553dac

Please sign in to comment.