I have to migrate a frontend build process from Gulp 3.9.1 to Gulp 4.0.2.
The latest Gulp doc says here that a gulpfile can be splitted in various parts placed under a folder named gulpfile.js with an index.js file and all other scripts.
Does Visual Studio 2019 Task Runner Explorer support this kind of configuration or a single gulpfile is needed?
The short answer is yes. Visual Studio support Gulp 4. What happens is Visual Studio is using the old version of Node.js. And it is caused because VS not finding the new node path.
What you have to do to fix it is:
Here is my gulpfile.js as a reference to you.
It just works with Gulp 4x