     .pipe gulp.dest 'dist/images'
 
 gulp.task 'fonts', ->
+  gulp.src '.tmp/fonts/**/*'
+    .pipe gulp.dest 'dist/fonts'
+
+gulp.task 'wireFonts', ->
   # Copy font files obtained with bower
   bowerFiles = require 'main-bower-files'
 
   gulp.src bowerFiles({filter: '**/*.{eot,svg,ttf,woff,woff2}'
   }).concat 'app/fonts/**/*'
     .pipe gulp.dest '.tmp/fonts'
-    .pipe gulp.dest 'dist/fonts'
 
 gulp.task 'extras', ->
   # Copy all files not handled by jekyll or other gulp tasks


gulp.task 'serve', ['clean'], ->
  # Clean first, then the rest
  runSequence ['jekyll:tmp', 'fonts'], 'browsersync'

gulp.task 'browsersync', ->
  # Run the web server

  # Path-specific tasks
  gulp.watch 'app/scripts/**/*.{coffee,litcoffee}', ['reloadAfterScripts']
  gulp.watch 'app/styles/**/*.scss', ['styles']
  gulp.watch 'app/fonts/**/*', ['wireFonts']
  gulp.watch 'bower.json', ['wiredep', 'wireFonts']

gulp.task 'wiredep', ->
  # Insert bower dependencies into files
  gulp.src 'app/_sass/main.scss'
    .pipe $.debug()
    .pipe wiredep
      ignorePath: /^(\.\.\/)+/
    .pipe gulp.dest 'app/_sass'

  gulp.src [
    'app/_includes/footer.html'
    'app/_includes/head.html'
    'app/_includes/header.html'
  ]
    .pipe $.debug()
    .pipe wiredep
      ignorePath: /^(\.\.\/)*\.\./
