Skip to content

Commit

Permalink
faster builds by only running cssnano in release task
Browse files Browse the repository at this point in the history
  • Loading branch information
ccorda committed Apr 24, 2016
1 parent 3197676 commit c772b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit c772b91

Please sign in to comment.