Chapter 4 – Using Node.js Modules for Advanced Tasks

In this chapter, we explored how to use node.js modules instead of gulp plugins in our tasks. We created new tasks to run a static server, keep our project in sync across devices, and take advantage of node.js' module definitions in our client-side code.

In this chapter, we covered the following topics:

  • If you can complete the task with a plain node.js module, then you likely should
  • When developing gulp plugins, don't recreate something that has already been created. Instead, offer to help improve the current plugin
  • The Gulp team actively blacklists duplicate plugins and plugins that act as wrappers around plain Node modules to keep the plugin ecosystem clean

Get Getting Started with Gulp now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.