I have begun “Build a Responsive Web Site from Scratch,” and it seems like the version of Gulp used in the video is an older version. In Lesson 3.4 the final Gulp task does not run properly, and an error will occur. I had to search online for a fix, but what I found doesn’t exactly fix the issue.
In the newest version of Gulp, apparently they added a “series and parallel” option, which should be placed in the area in bold. But when I use the following code, and run gulp watch, it starts ‘watch’ and ‘browserSync’, but never gets to watching the scss or html file, which means browserSync is doing nothing, and it doesn’t load the html page I’m editing, it loads a blank webpage with the url: localhost:3000 (screenshot posted below).
I’m not able to test it, but it seems like the issue might be a small typo - going by the docs, it looks like the callback function should be passed to gulp.series() not gulp.task():
If you use Gulp 3.*, the code will work. That said:
Gulp 4 introduces many breaking changes to how the gulpfile.js is written. I have not yet familiarized myself with it, so I couldn’t give you Gulp 4 code without some testing of my own. I will check this out later to see how this should be written to work with the latest version.