Skip to content

Instantly share code, notes, and snippets.

@tterb
Created December 20, 2019 07:58
Show Gist options
  • Save tterb/dd557c010d7384ef7e2bcfee2943645e to your computer and use it in GitHub Desktop.
Save tterb/dd557c010d7384ef7e2bcfee2943645e to your computer and use it in GitHub Desktop.
Gulpfile fonts
// Place fonts in proper location
gulp.task('build:fonts', function() {
return gulp.src(paths.fontFiles + '/**/**.*')
.pipe(rename(function(path) {path.dirname = '';}))
.pipe(gulp.dest(paths.jekyllFontFiles))
.pipe(gulp.dest(paths.siteFontFiles))
.pipe(browserSync.stream())
.on('error', gutil.log);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment