PS C:\Work> gulp html:build
[16:53:50] Using gulpfile C:\Work\gulpfile.js
[16:53:50] Starting 'html:build'...
[16:53:50] Finished 'html:build' after 15 ms
node:buffer:322
throw new ERR_INVALID_ARG_TYPE(
^
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
at new NodeError (node:internal/errors:371:5)
at Function.from (node:buffer:322:9)
at new Buffer (node:buffer:278:17)
at C:\Work\node_modules\gulp-rigger\index.js:20:29
at Rigger.<anonymous> (C:\Work\node_modules\rigger\index.js:719:9)
at Rigger.emit (node:events:390:28)
at Rigger.emit (node:domain:475:12)
at C:\Work\node_modules\rigger\index.js:252:16
at C:\Work\node_modules\rigger\node_modules\async\lib\async.js:232:13
at C:\Work\node_modules\rigger\node_modules\async\lib\async.js:113:21 {
code: 'ERR_INVALID_ARG_TYPE'
}
gulp.task('html:build',async function () {
gulp.src(path.src.html) //Выберем файлы по нужному пути
.pipe(rigger()) //Прогоним через rigger
.pipe(gulp.dest(path.build.html)) //Выплюнем их в папку build
.pipe(reload({stream: true})); //И перезагрузим наш сервер для обновлений
});