futurechan / gulp-asset-transform

13 stars 3 forks source link

Support a function that retruns a stream of tasks instead of an array of tasks #2

Closed futurechan closed 9 years ago

futurechan commented 9 years ago

Instead of

tasks:[less(), minifyCss(), 'concat'],

we should support something like

tasks:function(files){
  return files
    .pipe(less())
    .pipe(minifyCss())
    .pipe(concat());
}
futurechan commented 9 years ago

I want to do a few more things before I publish 1.5: