From 2e8f50473918dce7325d530eb34141862735ebc3 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 11 Jun 2015 01:31:40 +0200 Subject: [PATCH] quick fix for svg sprite --- gulpfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 54543855..319ff930 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -287,7 +287,8 @@ gulp.task('optimize:html', function() { gulp.task('optimize:images', function() { return gulp.src([ dist + '/**/*.{png,jpg,jpeg,gif,svg,webp}', - '!' + dist + '/media/**/*' + '!' + dist + '/media/**/*', + '!' + dist + '/assets/img/sprite*' ]) .pipe($.cache($.imagemin({ optimizationLevel: 5, // png