Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
agragregra committed May 13, 2019
1 parent 3047651 commit 85f0d16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ gulp.task('rsync', function() {
});

// Images @x1 & @x2 + Compression | Required graphicsmagick (sudo apt update; sudo apt install graphicsmagick)
gulp.task('imgx1', function() {
gulp.task('img1x', function() {
return gulp.src('app/img/_src/**/*.*')
.pipe(imageResize({ width: '50%' }))
.pipe(imagemin())
.pipe(gulp.dest('app/img/@1x/'))
});
gulp.task('imgx2', function() {
gulp.task('img2x', function() {
return gulp.src('app/img/_src/**/*.*')
.pipe(imageResize({ width: '100%' }))
.pipe(imagemin())
Expand All @@ -98,7 +98,7 @@ gulp.task('cleanimg', function() {
if (gulpVersion == 3) {

// Img Processing Task for Gulp 3
gulp.task('img', ['imgx1', 'imgx2']);
gulp.task('img', ['img1x', 'img2x']);

var taskArr = ['styles', 'scripts', 'browser-sync'];
gmWatch && taskArr.unshift('img');
Expand All @@ -117,7 +117,7 @@ if (gulpVersion == 3) {
if (gulpVersion == 4) {

// Img Processing Task for Gulp 4
gulp.task('img', gulp.parallel('imgx1', 'imgx2'));
gulp.task('img', gulp.parallel('img1x', 'img2x'));

gulp.task('watch', function() {
gulp.watch('app/'+syntax+'/**/*.'+syntax+'', gulp.parallel('styles'));
Expand Down

0 comments on commit 85f0d16

Please sign in to comment.