Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Doesn't seem to work after a gulp.dest() #9

@iDVB

Description

@iDVB

Any reason why this works fine before but not after a gilp.dest()?

gulp.src(filePath)
      .pipe(gulp.dest(targetPath))
      .pipe($.htmlSrc({ selector: 'img'}))
      .pipe($.tap(function(file){
        console.log('IMG',file);
        return file;
      }));
  });

nothing consoles out.

However..

gulp.src(filePath)
      .pipe($.tap(function(file){
        console.log('IN',file);
        return file;
      }))
      .pipe(gulp.dest(targetPath))
      .pipe($.tap(function(file){
        console.log('OUT',file);
        return file;
      }))
      .pipe($.htmlSrc({ selector: 'img'}))
      .pipe($.tap(function(file){
        console.log('IMG',file);
        return file;

The IN and OUT consoles look like the exact same output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions