From the course: Gulp.js: Web Project Workflows
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Creating multiple tasks - Gulp.js Tutorial
From the course: Gulp.js: Web Project Workflows
Creating multiple tasks
- [Instructor] So let's take a look at what it takes to work with multiple tasks. We have a simple task right here for HTML. So I want to create additional tasks for CSS and JavaScript. Now before I do that I'm going to create a couple more constants because I like to save the origin and destination as separate variables. Now I can replace this right here with some code that will output things to the proper place, and I can use those variables over and over. So I'm going to use the angle quotes right here to use a variable origin and then after that I can also use globs, I can say **/*.html, and that's going to find all of the HTML files in your project. I'll also use the destination variable right here. And then I'm going to copy this task to create the CSS version of the task. So this will be called css, and I'm going to go again to this origin variable and then I'm going to look for a css folder and do the same sort…
Contents
-
-
-
Installing Gulp6m 27s
-
(Locked)
Creating your first task7m 31s
-
(Locked)
Creating multiple tasks5m 10s
-
(Locked)
Clean serial workflows4m 24s
-
(Locked)
Parallel workflows with Browsersync6m 5s
-
(Locked)
Watching for changes3m 33s
-
(Locked)
Processing JavaScript with Babel11m 24s
-
(Locked)
Using the Sass CSS processor10m 49s
-
-