0.0.2 • Published 10 years ago

vinylify v0.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
10 years ago

Vinylify

Simple plugin for a smoother browserify/gulp workflow.

Monkey patches b.bundle to return a vinyl buffer object for further processing with gulp.

gulp.task('build', function() {
  return browserify('file.js')
    .plugin('vinylify')
    .bundle('out.js')
    .pipe(uglify())
    .pipe(gulp.dest('build/'));
});

Or require and call vinylify directly to return browserify with the plugin applied.

gulp.task('build', function() {
  return vinylify('file.js')
    .bundle('out.js')
    .pipe(uglify())
    .pipe(gulp.dest('build/'));
});