vinylify

0.0.2 • Public • Published

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/'));
});

Readme

Keywords

Package Sidebar

Install

npm i vinylify

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • litek