Gulp 吞咽html缩小错误

Gulp 吞咽html缩小错误,gulp,gulp-uglify,Gulp,Gulp Uglify,在尝试在构建中执行html缩小的过程中 代码: 错误: TypeError: Uncaught, unspecified "error" event. at TypeError (<anonymous>) at Transform.emit (events.js:74:15) at Transform.onerror (node_modules\gulp\node_modules\vinyl-fs\node_modules\through2\node_modu

在尝试在构建中执行html缩小的过程中

代码:

错误:

TypeError: Uncaught, unspecified "error" event.
    at TypeError (<anonymous>)
    at Transform.emit (events.js:74:15)
    at Transform.onerror (node_modules\gulp\node_modules\vinyl-fs\node_modules\through2\node_modules\readable-stream\lib\_stream_readable.js:558:12)
    at Transform.emit (events.js:95:17)
    at Transform.<anonymous> (index.js:80:42)
    at Array.forEach (native)
    at Transform.<anonymous> (index.js:68:35)
    at Array.for Each (native)
    at Transform.<anonymous> (index.js:46:36)
    at Array.forEach (native)
TypeError:Uncaught,未指定的“错误”事件。
输入错误()
在Transform.emit(events.js:74:15)
在Transform.onerror(node_modules\gulp\node_modules\乙烯基fs\node_modules\through2\node_modules\readable stream\lib\_stream\u readable.js:558:12)
在Transform.emit(events.js:95:17)
在变换时。(索引js:80:42)
at Array.forEach(本机)
在变换时。(索引js:68:35)
at Array.for Each(本机)
在变换时。(索引js:46:36)
at Array.forEach(本机)
是否有人遇到此问题,请建议如何解决此问题

谢谢 Sundar升级gulp useref:

npm remove gulp-useref && npm i gulp-useref --save-dev
npm remove gulp-useref && npm i gulp-useref --save-dev