mardi 28 août 2018

Converting gulp 3.0 task to gulp 4.0

I have a gulp script that was initially written for gulp 3.0. But after the update following task is failing due to a newer design. The following article describes this problem,

gulp 4.0

    gulp.task("tsbuild", ["lint", "lint-css", "tsbuild-vendor"], () => {
    runWebpack(configFile);
});

Above code is throwing following error,

throw new assert.AssertionError({ ^ AssertionError: Task function must be specified

I am building a complex web application and want to get rid of the error. Learning gulp is way out of my scope as I just need to build the web application. Can someone point me to the correct conversion of the above code snippet following Gulp 4.0 guidelines?




Aucun commentaire:

Enregistrer un commentaire