From f61468d1bf18efed9e2d0c3fb5ea2f847ad225a3 Mon Sep 17 00:00:00 2001 From: Steven Jones Date: Tue, 26 Feb 2019 16:13:09 +0000 Subject: [PATCH] Return gulp streams in tasks. --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 6dd44a2..f4836ba 100644 --- a/index.js +++ b/index.js @@ -41,7 +41,7 @@ module.exports = (gulp, config) => { * Script Task */ gulp.task('scripts', () => { - gulp + return gulp .src(config.paths.js) .pipe(sourcemaps.init()) .pipe( @@ -57,7 +57,7 @@ module.exports = (gulp, config) => { * Task for minifying images. */ gulp.task('imagemin', () => { - gulp + return gulp .src(config.paths.img) .pipe( imagemin([ @@ -76,7 +76,7 @@ module.exports = (gulp, config) => { * Task for generating icon colors/png fallbacks from svg. */ gulp.task('icons', () => { - gulp + return gulp .src('**/*.svg', { cwd: `${config.paths.icons}` }) .pipe(svgSprite(config.iconConfig)) .pipe(gulp.dest('.'));