Im trying to generate my gulp tasks instead of statically writing them .I would like to loop through an array and generate gulp tasks based on the item in the array.
Something like this , any help will be appreciated !
var brands = ['google','facebook','twitter']
brands.forEach(function (brand) {
gulp.task(brand, function() {
return gulp.src('./'+ brand + '.scss')
.pipe(rename('var.scss'))
.pipe(gulp.dest('./styles/tmp'));
})
})