Skip to content

Instantly share code, notes, and snippets.

@ro31337
Created March 6, 2016 01:14
Show Gist options
  • Select an option

  • Save ro31337/a9ebae45112b0c5dbf1f to your computer and use it in GitHub Desktop.

Select an option

Save ro31337/a9ebae45112b0c5dbf1f to your computer and use it in GitHub Desktop.
var source = require('vinyl-source-stream');
// ...
.transform(babelifyConfig) // the same as -t command line parameter
.bundle() // "readable stream with the javascript file contents"
.pipe(source('bundle.js')) // "conventional text stream at the start of our gulp pipeline", wrapped with "pipe" method
.pipe(gulp.dest('dist')); // standard gulp way to redirect gulp pipe to directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment