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": { "bootstrap": {
"main": [ "main": [
"dist/css/bootstrap.css", "dist/css/bootstrap.css",
"js/dropdown.js" "js/dropdown.js",
"./dist/fonts/**.*"
] ]
}, },
"slimScroll": { "slimScroll": {

View File

@ -72,8 +72,7 @@ gulp.task('html', ['inject', 'partials'], function () {
// Only applies for fonts from bower dependencies // Only applies for fonts from bower dependencies
// Custom fonts are handled by the "other" task // Custom fonts are handled by the "other" task
gulp.task('fonts', function () { gulp.task('fonts', function () {
return gulp.src($.mainBowerFiles()) return gulp.src($.mainBowerFiles('**/*.{eot,svg,ttf,woff,woff2}'))
.pipe($.filter('**/*.{eot,svg,ttf,woff,woff2}'))
.pipe($.flatten()) .pipe($.flatten())
.pipe(gulp.dest(path.join(conf.paths.dist, '/fonts/'))); .pipe(gulp.dest(path.join(conf.paths.dist, '/fonts/')));
}); });