From 4d85bcc22c88264a38777c1b1dede8ae9af073a8 Mon Sep 17 00:00:00 2001 From: Dmitry Menov <18627661+mdmen@users.noreply.github.com> Date: Thu, 15 Feb 2018 00:26:09 +0300 Subject: [PATCH] :pencil: arrow functions --- gulpfile.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 4bcbeb9..ad1d84d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -30,7 +30,7 @@ const path = { }; gulp - .task('js:build', function () { + .task('js:build', () => { return gulp.src(path.src.js) .pipe(plumber()) .pipe(babel({ @@ -43,7 +43,7 @@ gulp .pipe(plumber.stop()) .pipe(gulp.dest(path.dist.js)); }) - .task('css:build', function () { + .task('css:build', () => { return gulp.src(path.src.css) .pipe(plumber()) .pipe(autoprefixer({ @@ -57,7 +57,7 @@ gulp .pipe(plumber.stop()) .pipe(gulp.dest(path.dist.css)); }) - .task('img:build', function () { + .task('img:build', () => { return gulp.src(path.src.img) .pipe(plumber()) .pipe(imagemin({ @@ -71,18 +71,18 @@ gulp 'css:build', 'img:build', ]) - .task('watch', function () { - watch([path.watch.img], function (e, cb) { + .task('watch', () => { + watch([path.watch.img], () => { gulp.start('img:build'); }); - watch([path.watch.css], function (e, cb) { + watch([path.watch.css], () => { gulp.start('css:build'); }); - watch([path.watch.js], function (e, cb) { + watch([path.watch.js], () => { gulp.start('js:build'); }); }) - .task('final', function () { + .task('final', () => { gulp.src(['./popup.html', './manifest.json']) .pipe(gulp.dest(path.final));