Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 465 Bytes

readme.md

File metadata and controls

24 lines (18 loc) · 465 Bytes

Gulp Virtual Source

Create virtual gulp files through a constructor function instead of the usually used gulp.src().

How to use it?

npm install gulp-virtual-src

// gulpfile.js
import gulp from 'gulp'
import virtualSrc from 'gulp-virtual-src'

function dynamicTask() {
    return virtualSrc(
        [
            () => ['readme.md', `# Welcome`]
        ]
    )
        .pipe(anotherGulpPlugin())
        .pipe(gulp.dest('myDestination/'))
}