Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iDVB opened this issue Apr 2, 2016 · 1 comment
Open

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

iDVB opened this issue Apr 2, 2016 · 1 comment

Comments

@iDVB
Copy link

iDVB commented Apr 2, 2016

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.

@bruderstein
Copy link
Owner

Without looking into it, I think you need something afterwards that starts
the stream - like if you had another gulp.dest() afterwards, I think it
would work. There's probably a gulp plugin that does it without needing to
output it somewhere.

On the other hand, maybe there's something we can do to start the stream
in this plugin.

On Sat, 2 Apr 2016, 15:47 iDVB, [email protected] wrote:

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.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants