0.1.5 • Published 8 years ago

gulp-rollup-file v0.1.5

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Gulp Rollup File

Gulp wrapper around rollup-plugin-file, to allow passing a file (or vinyl) entry point to Rollup rather than a string.

Installation

npm install --save-dev gulp-rollup-file

Usage

This is mainly designed to be used alongside gulp-process-inline, so we can use Rollup on inline <script> blocks in HTML.

import gulp from 'gulp';
import rollup from 'gulp-rollup-file';
import processInline from 'gulp-process-inline';

gulp.task('inline-rollup', () => {
  return gulp.src('./src/*.html')
    .pipe(processInline().extract('script'))
    .pipe(rollup({ format: 'iife' }))
    .pipe(processInline().restore())
    .pipe(gulp.dest('./dist/'));
});

TODO

  • Add tests

License

MIT © Bede Overend

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago