Skip to content

Commit

Permalink
fix(gulp/fonts): gulp didn't pack all needed fonts
Browse files Browse the repository at this point in the history
Closes akveo#58
  • Loading branch information
tibing-old-email authored and lugovsky committed Jun 23, 2016
1 parent dda370e commit f53c360
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@
"bootstrap": {
"main": [
"dist/css/bootstrap.css",
"js/dropdown.js"
"js/dropdown.js",
"./dist/fonts/**.*"
]
},
"slimScroll": {
Expand Down
3 changes: 1 addition & 2 deletions gulp/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ gulp.task('html', ['inject', 'partials'], function () {
// Only applies for fonts from bower dependencies
// Custom fonts are handled by the "other" task
gulp.task('fonts', function () {
return gulp.src($.mainBowerFiles())
.pipe($.filter('**/*.{eot,svg,ttf,woff,woff2}'))
return gulp.src($.mainBowerFiles('**/*.{eot,svg,ttf,woff,woff2}'))
.pipe($.flatten())
.pipe(gulp.dest(path.join(conf.paths.dist, '/fonts/')));
});
Expand Down

0 comments on commit f53c360

Please sign in to comment.