In this chapter, we discussed ways to improve upon our tasks by improving error handling, ordering our source files, and cleaning up our compiled code. We learned how to set up task dependencies, generate source maps, and use an external configuration file.
In this chapter, we covered the following topics:
Gulp's default error handling process will be much improved in future releases, but until then, the
gulp-plumber
plugin will give you the additional control you needThe source order can be handled by introducing an ordered array of source file paths
In your source arrays, you can use direct paths to files along with globs without having to worry about the direct file path being processed twice