Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: HTML 语法错误导致压缩失败 #479

Closed
Misakamoe opened this issue Jul 7, 2024 · 0 comments
Closed

[Bug]: HTML 语法错误导致压缩失败 #479

Misakamoe opened this issue Jul 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Misakamoe
Copy link

问题描述及如何重现此问题

使用了 gulp-html-minifier-terser 插件在自动构建时压缩代码,但是 Actions 始终报错,测试了 bgmbgmv0 均如此,经排查是生成页面时 HTML 语法错误导致压缩失败。

比如 <span class="bangumi-info-items" style="color:style="color:#58b2dc";">,style 预期应该为 style="color:#58b2dc;"

报错信息(建议使用截图,请尽量截取全部把错误信息)

image

插件版本

v1.10.0

环境信息(使用hexo -v命令查看)

hexo: 7.3.0
hexo-cli: 4.3.2
os: win32 10.0.22631 undefined
node: 22.2.0
acorn: 8.11.3
ada: 2.7.8
ares: 1.28.1
base64: 0.5.2
brotli: 1.1.0
cjs_module_lexer: 1.2.2
cldr: 45.0
icu: 75.1
llhttp: 9.2.1
modules: 127
napi: 9
nghttp2: 1.61.0
nghttp3: 0.7.0
ngtcp2: 1.3.0
openssl: 3.0.13+quic
simdjson: 3.9.2
simdutf: 5.2.8
tz: 2024a
undici: 6.13.0
unicode: 15.1
uv: 1.48.0
uvwasi: 0.0.21
v8: 12.4.254.14-node.12
zlib: 1.3.0.1-motley-7d77fb7
@Misakamoe Misakamoe added the bug Something isn't working label Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant