一覧へ戻る
bedeoverend/gulp-rollup-file(新しいタブで開きます)
主要言語: JavaScript
Gulp plugin wrapper around rollup-plugin-file
- star 数
- 4
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 0
- 最終更新
- 2016/09/26
主要言語: JavaScript
Gulp plugin wrapper around rollup-plugin-file
Gulp wrapper around rollup-plugin-file, to allow passing a file (or vinyl) entry point to Rollup rather than a string.
npm install --save-dev gulp-rollup-file
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/')); });
MIT © Bede Overend