From 4c0206324d0176b5a0cf44b64604fbde6b8fe5aa Mon Sep 17 00:00:00 2001 From: Athou Date: Fri, 8 Aug 2014 22:25:30 +0200 Subject: [PATCH] copy favicons --- gulpfile.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 6d9c5102..2218e846 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -21,6 +21,13 @@ gulp.task('images', function() { return gulp.src(SRC_DIR + 'images/**/*').pipe(gulp.dest(BUILD_DIR + 'images')); }); +gulp.task('favicons', function() { + var favicons_png = SRC_DIR + '*.png'; + var favicons_ico = SRC_DIR + '*.ico'; + var favicons_svg = SRC_DIR + '*.svg'; + return gulp.src([favicons_png, favicons_ico, favicons_svg]).pipe(gulp.dest(BUILD_DIR)); +}); + gulp.task('sass', function() { return gulp.src(SRC_DIR + 'sass/app.scss').pipe(sass()).pipe(gulp.dest(TEMP_DIR + 'css')); }); @@ -40,7 +47,7 @@ gulp.task('template-cache', function() { return gulp.src(SRC_DIR + 'templates/**/*.html').pipe(templateCache(options)).pipe(gulp.dest(TEMP_DIR + 'js')); }); -gulp.task('build', ['images', 'sass', 'fonts', 'template-cache', 'bower'], function() { +gulp.task('build', ['images', 'favicons', 'sass', 'fonts', 'template-cache', 'bower'], function() { var assets = useref.assets({ searchPath : [SRC_DIR, TEMP_DIR] });