[fix] fix typo - missing ;
for "
#469
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
article_footer
里 wechat 分享按钮的地方,"
少写了一个分号。此 PR 修复该问题。这个问题会导致通过 terser 对 html 内的 js 压缩的时候语法解析失败。
复现方式:
在
_config.stellar.yml
中article.share
配置中确保添加了wechat
,开启 wechat 分享按钮。以基于
@uiolee/hexo-htmlnano
插件为例,对构建物进行压缩:进行压缩的时候,terser 会报错:
并导致所有开启了 wechat 分享按钮的页面压缩后的 html 代码均为空。