Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with Gulp ??? Second Edition

You're reading from   Getting Started with Gulp ??? Second Edition Automating web development workflows

Arrow left icon
Product type Paperback
Published in Apr 2017
Publisher Packt
ISBN-13 9781787283732
Length 132 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Travis Maynard Travis Maynard
Author Profile Icon Travis Maynard
Travis Maynard
Arrow right icon
View More author details
Toc

Table of Contents (7) Chapters Close

Preface 1. Introducing Gulp FREE CHAPTER
2. Getting Started
3. Understanding the Basics of Gulp
4. Performing Tasks with Gulp
5. Creating Advanced Tasks
6. Tips, Tricks, and Resolving Issues

Creating Advanced Tasks

Until now, we have only explored basic implementations of Gulp plugins to handle the various tasks that we've built in our gulpfile. In this chapter, you are going to learn how to use plain Node.js modules in our Gulp tasks and explore new ways to create tasks using plugins and node modules together.

Using plain Node.js modules

Using Gulp plugins is the easiest way to add functionality to your workflow. However, the actions that you need to perform inside your tasks are sometimes better off being written using plain Node.js modules and occasionally you will need to use plugins and Node.js modules together.

In this section, we will cover common usage of plain Node.js modules, when and why these modules should be used in place of (or alongside of) Gulp plugins, and some various examples you can use in your own gulpfile to improve your builds.

Why use plain Node.js modules?

A common misunderstanding...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image