Skip to content

Instantly share code, notes, and snippets.

@yocontra
Created February 20, 2014 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yocontra/9106475 to your computer and use it in GitHub Desktop.
Save yocontra/9106475 to your computer and use it in GitHub Desktop.
stream forking sample with gulp-if
var gulp = require('gulp');
var gi = require('gulp-if');
gulp.src(['*.js', '*.css'])
.pipe(dostuff())
.pipe(gi('*.js', gulp.dest('js'))
.pipe(gi('*.css', gulp.dest('css'))
.pipe(gulp.dest('all'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment