Skip to content

Instantly share code, notes, and snippets.

View LeoEatle's full-sized avatar
🌚
functional rendering is so good

LeoEatle LeoEatle

🌚
functional rendering is so good
View GitHub Profile
@LeoEatle
LeoEatle / gulp.fork.js
Created April 26, 2020 13:50
Gulp forking a stream (e.g. send different files to different dests)
gulp.task("ts", function() {
// These would be the names of two source files for example
tsRootFiles = ["rab", "buildRab"];
tsRootFiles.forEach(tsFile => {
let stream = gulp
.src(`ts/${tsFile}.ts`)
.pipe(sourcemaps.init())
.pipe(
ts({