Merge branch 'patch-1' into 'master'
Fix sample code in README.md See merge request pushrocks/gulp-function!2
This commit is contained in:
commit
a05253bdcd
@ -35,8 +35,8 @@ let myAsyncFunction = async (file, enc) => {
|
|||||||
gulp.task("gulpTest", function() {
|
gulp.task("gulpTest", function() {
|
||||||
let stream = gulp
|
let stream = gulp
|
||||||
.src("./mydir/*.something")
|
.src("./mydir/*.something")
|
||||||
.pipe(gulpFunction(myFunction, "forEach")) //read the notes below
|
.pipe(gulpFunction(myAsyncFunction, "forEach")) //read the notes below
|
||||||
// .pipe(forEach(myFunction)) // if imported as >> import { forEach } from 'gulp-function' <<
|
// .pipe(forEach(myAsyncFunction)) // if imported as >> import { forEach } from 'gulp-function' <<
|
||||||
.pipe(gulp.dest("./build/"));
|
.pipe(gulp.dest("./build/"));
|
||||||
return stream; // by returning the stream gulp knows when our task has finished.
|
return stream; // by returning the stream gulp knows when our task has finished.
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user