gulp pipemin错误:未找到路径
我们得到了一些通用的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
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){
返回标准管道(…)
},
}))
});代码>