uenala / project_spa_bergauf

CAS-FEE 2015, Group 10, 2nd Project
GNU General Public License v2.0
0 stars 0 forks source link

404-Error for fontawesome-webfont.woff2?v=4.4.0 #59

Closed RAeschimann closed 8 years ago

RAeschimann commented 8 years ago

Request to /vendor/font-awesome-bower/fonts/fontawesome-webfont.woff2?v=4.4.0 gives a 404-Error.

RAeschimann commented 8 years ago

Update gulp task for woff2 files.

  // copy Bower fonts and images into build directory
  gulp.task('bowerAssets', ['clean'], function () {
    var assetFilter = $.filter('**/*.{eot,otf,svg,ttf,woff,woff2,gif,jpg,jpeg,png}');
    return gulp.src($.mainBowerFiles(), {base: bowerDir})
      .pipe(assetFilter)
      .pipe(gulp.dest(config.extDir))
      .pipe(assetFilter.restore());
  });

  // copy custom fonts into build directory
  gulp.task('fonts', ['clean'], function () {
    var fontFilter = $.filter('**/*.{eot,otf,svg,ttf,woff,woff2}');
    return gulp.src([config.appFontFiles])
      .pipe(fontFilter)
      .pipe(gulp.dest(config.buildFonts))
      .pipe(fontFilter.restore());
  });