Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
gulp pipemin错误:未找到路径_Gulp - Fatal编程技术网

gulp pipemin错误:未找到路径

gulp pipemin错误:未找到路径,gulp,Gulp,我们得到了一些通用的gulp pipemin错误,这些错误引用了未找到的路径,但我们无法确切地告诉它指向哪个文件路径 我们最终发现了有问题的文件路径,但是我想知道捕获此异常并在构建网站时输出一些有用信息的最佳方法 pipemincmd提示错误为: [13:59:50] Starting 'pipemin'... Potentially unhandled rejection [1] Error: Path [object Object] not found! at getFiles (c:\te

我们得到了一些通用的gulp pipemin错误,这些错误引用了未找到的路径,但我们无法确切地告诉它指向哪个文件路径

我们最终发现了有问题的文件路径,但是我想知道捕获此异常并在构建网站时输出一些有用信息的最佳方法

pipemin
cmd提示错误为:

[13:59:50] Starting 'pipemin'...
Potentially unhandled rejection [1] Error: Path [object Object] not found!
at getFiles (c:\test\MyUiProject\node_modules\gulp-pipemin\index.js:172:17)
吞咽任务看起来像:

gulp.task('pipemin',函数(){
返回gulp.src(['./myFile.html','./myOtherFile.html'])
.管道({
css:功能(strm,b){
返回标准管道(…)
},
html:函数(strm,b){
返回标准管道(…)
},
js:功能(strm,b){
返回标准管道(…)
},
}))
});