title: Can I convert a gulp stream into a String?
body: <p>I want to apply some tasks in a gulp stream and get the output string. I dont want create a new file.</p>
  
  <p>This is my code:</p>
  
  <pre><code>function buildCSS() {
  
      // READ A FILE AND APPLY SOME TASKS
      var content = gulp.src(__dirname + '/src/styles.less')
          .pipe(g.less());
  
      if (environment === 'live') {
          content.pipe(g.minifyCss());
      }
  
      // I NEED RETURN A STRING
      return content;
  }
  
  gulp.task('build-html', function() {
  
    // I SHOULD GET THE CSS TEXT 
    var cssText = buildCSS(); 
  
    gulp.src(__dirname + '/src/template.html')
          // INSERT THE CSS IN A HTML FILE (REPLACE AS STRING)
          .pipe(g.replace('/*INJECT:CSS*/', cssText))
          .pipe(gulp.dest(__dirname + '/dist/'));
  
  });
  </code></pre>