From f53c360d3023cc1e29734e5a5ea827b5cdb698f0 Mon Sep 17 00:00:00 2001 From: tibing Date: Tue, 21 Jun 2016 13:57:29 +0300 Subject: [PATCH] fix(gulp/fonts): gulp didn't pack all needed fonts Closes #58 --- bower.json | 3 ++- gulp/build.js | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bower.json b/bower.json index 0f7eef3..5063b97 100644 --- a/bower.json +++ b/bower.json @@ -78,7 +78,8 @@ "bootstrap": { "main": [ "dist/css/bootstrap.css", - "js/dropdown.js" + "js/dropdown.js", + "./dist/fonts/**.*" ] }, "slimScroll": { diff --git a/gulp/build.js b/gulp/build.js index 79bcf23..efbccfb 100644 --- a/gulp/build.js +++ b/gulp/build.js @@ -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/'))); });