Created
March 6, 2016 01:14
-
-
Save ro31337/a9ebae45112b0c5dbf1f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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