Skip to content

Commit 27f1cc8

Browse files
committed
fix(gulp:build): add copy:fonts task
1 parent 2e83bd1 commit 27f1cc8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: app/templates/gulpfile.babel(gulp).js

+7
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ gulp.task('build', cb => {
519519
[
520520
'build:images',
521521
'copy:extras',
522+
'copy:fonts',
522523
'copy:assets',
523524
'copy:server',
524525
'transpile:server',
@@ -614,6 +615,12 @@ gulp.task('copy:extras', () => {
614615
.pipe(gulp.dest(`${paths.dist}/${clientPath}`));
615616
});
616617

618+
gulp.task('copy:fonts', () => {<% if(filters.bootstrap) { %>
619+
return gulp.src(`${clientPath}/bower_components/{bootstrap,font-awesome}/fonts/**/*`, { dot: true })<% } else { %>
620+
return gulp.src(`${clientPath}/bower_components/font-awesome/fonts/**/*`, { dot: true })<% } %>
621+
.pipe(gulp.dest(`${paths.dist}/${clientPath}/bower_components`));
622+
});
623+
617624
gulp.task('copy:assets', () => {
618625
return gulp.src([paths.client.assets, '!' + paths.client.images])
619626
.pipe(gulp.dest(`${paths.dist}/${clientPath}/assets`));

0 commit comments

Comments
 (0)