From bee16ebee2b88fc12d0e7376dad005bf6cfbbb01 Mon Sep 17 00:00:00 2001 From: jsalonen Date: Wed, 6 Aug 2014 13:21:40 +0300 Subject: [PATCH] Use faster compression in imagemin, Revert: Run LESS compliation after other tasks --- modules/ytp-assets-common/gulpfile.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/ytp-assets-common/gulpfile.js b/modules/ytp-assets-common/gulpfile.js index 96b4563984..acc19b7770 100644 --- a/modules/ytp-assets-common/gulpfile.js +++ b/modules/ytp-assets-common/gulpfile.js @@ -44,7 +44,7 @@ gulp.task('less', function () { gulp.task('images', function() { return gulp.src(paths.src.images) - .pipe(imagemin({optimizationLevel: 5})) + .pipe(imagemin({optimizationLevel: 0})) .pipe(gulp.dest(paths.dist+'/images')); }); @@ -97,8 +97,7 @@ gulp.task('config', function(){ gulp.task('default', function(callback) { runSequence('clean', - ['bootstrap', 'vendor','config', 'templates', 'static_pages', 'images', 'fonts'], - 'less', + ['bootstrap', 'vendor', 'config', 'templates', 'static_pages', 'images', 'less', 'fonts'], callback); });