From c772b9198615f0b1f3b68462770a1c4da197b355 Mon Sep 17 00:00:00 2001 From: Cameron Corda Date: Sun, 24 Apr 2016 16:48:06 -0700 Subject: [PATCH] faster builds by only running cssnano in release task --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 516848c6..226b4f20 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -94,7 +94,7 @@ gulp.task('styles', function() { .pipe($.if(!isProduction, $.sourcemaps.init())) .pipe($.sass(sassOptions).on('error', handleErrors)) - .pipe($.cssnano(nanoOptions)) + .pipe($.if(isProduction, $.cssnano(nanoOptions))) .pipe($.if(!isProduction, $.sourcemaps.write(sourcemapsOptions))) .pipe(gulp.dest( config.output + '/css' )) .pipe(browserSync.stream());