Skip to content

Commit

Permalink
fix(gulp:build): add copy:fonts task
Browse files Browse the repository at this point in the history
  • Loading branch information
Awk34 committed Mar 10, 2016
1 parent 2e83bd1 commit 27f1cc8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/templates/gulpfile.babel(gulp).js
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ gulp.task('build', cb => {
[
'build:images',
'copy:extras',
'copy:fonts',
'copy:assets',
'copy:server',
'transpile:server',
Expand Down Expand Up @@ -614,6 +615,12 @@ gulp.task('copy:extras', () => {
.pipe(gulp.dest(`${paths.dist}/${clientPath}`));
});

gulp.task('copy:fonts', () => {<% if(filters.bootstrap) { %>
return gulp.src(`${clientPath}/bower_components/{bootstrap,font-awesome}/fonts/**/*`, { dot: true })<% } else { %>
return gulp.src(`${clientPath}/bower_components/font-awesome/fonts/**/*`, { dot: true })<% } %>
.pipe(gulp.dest(`${paths.dist}/${clientPath}/bower_components`));
});

gulp.task('copy:assets', () => {
return gulp.src([paths.client.assets, '!' + paths.client.images])
.pipe(gulp.dest(`${paths.dist}/${clientPath}/assets`));
Expand Down

1 comment on commit 27f1cc8

@thegitfather
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the output directory should be

.pipe(gulp.dest(`${paths.dist}/${clientPath}/bower_components/font-awesome/fonts`));

at least this fixed the missing font when doing gulp serve:dist in my project

Please sign in to comment.