gulp-pipe-rollup

0.1.2 • Public • Published

gulp-pipe-rollup

This small gulp plugin add rollup support to gulp.

Usage

Simply call the function you get when requiring this plugin with your rollup config and pipe the sourcefiles into it. This example comes from the gulpfile of this project:

gulp.task('default', function () {
  return gulp.src('index.js')
    .pipe(rollup({
      entry: 'index.js',
 
      external: [
        'vinyl',
        'duplexify',
        'stream',
        'rollup'
      ],
 
      format: 'cjs',
    }))
    .pipe(gulp.dest('dist'));
});

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-pipe-rollup

Weekly Downloads

0

Version

0.1.2

License

MIT

Last publish

Collaborators

  • bgotink