Skip to content

Commit

Permalink
(fix) use imagemin in prod only
Browse files Browse the repository at this point in the history
Before, imagemin was always ran during build. Now, imagemin is only
ran in prod stage.
  • Loading branch information
dustinspecker committed Sep 17, 2014
1 parent 7b4bb4b commit 64210c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/templates/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ gulp.task('fonts', ['clean'], function () {
// copy and optimize images into build directory
gulp.task('images', ['clean'], function () {
return gulp.src(appImages)
.pipe($.imagemin())
.pipe($.if(isProd, $.imagemin()))
.pipe(gulp.dest(buildConfig.buildImages));
});

Expand Down

0 comments on commit 64210c4

Please sign in to comment.