Chapter 7. Working with streams

This chapter covers

  • Merge streams and passthrough streams for combining different sources
  • Stream arrays for duplicating streams
  • Stream combiners for creating stream snippets
  • Stream queues for handling stream element order
  • Stream filters for dynamically changing stream contents

Previously you created build pipelines for different types of assets, like CSS and JavaScript. Stylesheets and scripts are fundamentally different, so you had to treat them differently. That resulted in one build pipeline for each asset type, which you saw in chapter 2. But what if you have to handle files that are of the same type and require the same process but vary enough that you have to duplicate pipeline definitions?

Think ...

Get Front-End Tooling with Gulp, Bower, and Yeoman now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.