Skip to content

Commit

Permalink
upadted gulp task clear
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonearly committed Sep 4, 2016
1 parent 757013e commit 01ce59c
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions gulpfile.babel.js
Expand Up @@ -39,33 +39,24 @@ import pkg from './package.json';
const $ = gulpLoadPlugins();
const reload = browserSync.reload;

//Clear gulp cache
gulp.task('clear', function (done) {
return cache.clearAll(done);
});



// // Optimize images
// gulp.task('images', () =>
// gulp.src('app/images/**/*')
// .pipe($.cache($.imagemin({
// progressive: true,
// interlaced: true
// })))
// .pipe(gulp.dest('dist/images'))
// .pipe($.size({title: 'images'}))
// );

// Optimize Images
gulp.task('images', function () {
return gulp.src('app/images/**/*.{gif,jpg,png,svg}')
// Optimize images
gulp.task('images', () =>
gulp.src('app/images/**/*')
.pipe($.cache($.imagemin({
progressive: true,
interlaced: true,
pngquant: true
interlaced: true
})))
.pipe(gulp.dest('dist/images'))
.pipe($.size({title: 'images'}));
});
.pipe($.size({title: 'images'}))
);

gulp.task('clear', function (done) {
return cache.clearAll(done);
});

// Copy all files at the root level (app)
gulp.task('copy', () =>
Expand Down

0 comments on commit 01ce59c

Please sign in to comment.