Skip to content

How to pass parameters to change #5

@iiison

Description

@iiison

Is there way to pass parameters to performChange function from task. Such that

function performChange(content, someFlag) {
    return content.replace(/foo/g, someFlag);
}
gulp.task('change', function() {
    return gulp.src('src/*.html')
        .pipe(change(performChange)) // pass someFlag HOW?
        .pipe(gulp.dest('build/'))
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions