fix(gulp/fonts): gulp didn't pack all needed fonts

Closes #58
pull/92/head
tibing 2016-06-21 13:57:29 +03:00 committed by Vladimir Lugovsky
parent dda370e61b
commit f53c360d30
2 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,8 @@
"bootstrap": {
"main": [
"dist/css/bootstrap.css",
"js/dropdown.js"
"js/dropdown.js",
"./dist/fonts/**.*"
]
},
"slimScroll": {

View File

@ -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/')));
});