gulp.task ( "babel", function ( ) { return gulp.src("src/*.js") .pipe( plumber() ) .pipe(babel()) .pipe ( plumber.stop() ) .pipe(gulp.dest("dist")) } );