I have a gulp script to manipulate a master html file and rename it into several name based on an array. here's the script.
    gulp.task('default', function () {
      var data = ['name1','name2'];
      for(var name in data){              
         gulp.src('src/master.html')
           .pipe(*dosomething...*)
           .pipe(rename(function(path) {
              path.basename = name;
              path.extname = '.html';
          }))
         .pipe(gulp.dest('dist'));
      }
    });
But only the name2.html is generated. Can anyone tell me what's wrong with my code.
 
     
     
    