diff --git a/gulp/tasks/copy-static-files.js b/gulp/tasks/copy-static-files.js index 5be8ae806..7b8646524 100644 --- a/gulp/tasks/copy-static-files.js +++ b/gulp/tasks/copy-static-files.js @@ -21,3 +21,10 @@ gulp.task('copy-static-files', function(callback) { callback ) }) + +gulp.task('copy-images', function(callback) { + return gulp.src(['public/**/*.png', 'public/**/*.jpg', + '!public/favicon*', '!public/apple-icon*', '!public/android-icon*', '!public/ms-icon*' + ]) + .pipe(gulp.dest('staging')); +}) diff --git a/gulp/tasks/default.js b/gulp/tasks/default.js index bf013122c..ce053b1be 100644 --- a/gulp/tasks/default.js +++ b/gulp/tasks/default.js @@ -2,7 +2,7 @@ var gulp = require('gulp'), runSequence = require('run-sequence'); gulp.task('default', function (callback) { - runSequence('copy-js', 'copy-css', 'copy-html', 'revision', 'revision-update', 'copy-static-files', + runSequence('copy-js', 'copy-css', 'copy-images', 'copy-html', 'revision', 'revision-update', 'copy-static-files', callback ) })