gulp.run() has been deprecated. Use task dependencies or gulp.watch task triggering instead.Как можно изменить запуск такого
var beats_task = require('./gulp/beats');
global.options = parseArgs(process.argv.slice(2));
gulp.task('run-beats', () => {
if(global.options.prod){
gulp.run(beats_task.prod);
}else{
gulp.run(beats_task.dev);
}
});
gulp.task('run-beats', global.options.prod ?
beats_task.prod : beats_task.dev
});