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?
I have my Gulp functions broke out into multiple files. I have my separate files under a folder called 'Gulp' (variables.js and functions.js) and have my gulp file as below. With the Hub registry it will find all the files to process.
My package.json
gulpfile.js
variable.js
function.js