Expected behavior (预期行为)
使用hexo g && gulp对网页进行压缩。
Actual behavior (实际行为)
报错如下:
events.js:160
throw er; // Unhandled 'error' event
............
at new HTMLParser (D:\Blog\Kylin\node_modules\html-minifier\src\htmlparser.js:236:13)
at minify (D:\Blog\Kylin\node_modules\html-minifier\src\htmlminifier.js:962:3)
at Object.exports.minify (D:\Blog\Kylin\node_modules\html-minifier\src\htmlminifier.js:1315:10)
at objectAssign.fileName (D:\Blog\Kylin\node_modules\gulp-htmlmin\index.js:22:39)
at module.exports (D:\Blog\Kylin\node_modules\tryit\tryit.js:8:9)
at minifyHtml (D:\Blog\Kylin\node_modules\gulp-htmlmin\index.js:21:9)
at Transform.htmlminTransform [as _transform] (D:\Blog\Kylin\node_modules\gulp-htmlmin\index.js:51:7)
at Transform._read (D:\Blog\Kylin\node_modules\gulp-htmlmin\node_modules\readable-stream\lib_stream_transform.js:159:10)
at Transform._write (D:\Blog\Kylin\node_modules\gulp-htmlmin\node_modules\readable-stream\lib_stream_transform.js:147:83)
at doWrite (D:\Blog\Kylin\node_modules\gulp-htmlmin\node_modules\readable-stream\lib_stream_writable.js:347:64)
Steps to reproduce the behavior (重现步骤)
gulp压缩采用的方式为 #665 中的方式。以前使用都是没有问题的。更新到5.1.0之后出现这个问题。
NexT Informations
Add the ✔ sign before an item which is affected by this behavior.
NexT Version:
✔ - Master
- Latest Release
- Old version -
NexT Scheme:
- All schemes
- Muse
✔ - Mist
- Pisces
Other Informations (Like Browser, System, Screenshots)
Expected behavior (预期行为)
使用hexo g && gulp对网页进行压缩。
Actual behavior (实际行为)
报错如下:
events.js:160
throw er; // Unhandled 'error' event
............
at new HTMLParser (D:\Blog\Kylin\node_modules\html-minifier\src\htmlparser.js:236:13)
at minify (D:\Blog\Kylin\node_modules\html-minifier\src\htmlminifier.js:962:3)
at Object.exports.minify (D:\Blog\Kylin\node_modules\html-minifier\src\htmlminifier.js:1315:10)
at objectAssign.fileName (D:\Blog\Kylin\node_modules\gulp-htmlmin\index.js:22:39)
at module.exports (D:\Blog\Kylin\node_modules\tryit\tryit.js:8:9)
at minifyHtml (D:\Blog\Kylin\node_modules\gulp-htmlmin\index.js:21:9)
at Transform.htmlminTransform [as _transform] (D:\Blog\Kylin\node_modules\gulp-htmlmin\index.js:51:7)
at Transform._read (D:\Blog\Kylin\node_modules\gulp-htmlmin\node_modules\readable-stream\lib_stream_transform.js:159:10)
at Transform._write (D:\Blog\Kylin\node_modules\gulp-htmlmin\node_modules\readable-stream\lib_stream_transform.js:147:83)
at doWrite (D:\Blog\Kylin\node_modules\gulp-htmlmin\node_modules\readable-stream\lib_stream_writable.js:347:64)
Steps to reproduce the behavior (重现步骤)
gulp压缩采用的方式为 #665 中的方式。以前使用都是没有问题的。更新到5.1.0之后出现这个问题。
NexT Informations
Add the ✔ sign before an item which is affected by this behavior.
NexT Version:
✔ - Master
NexT Scheme:
✔ - Mist
Other Informations (Like Browser, System, Screenshots)