hexo-swpp 3.2.3 → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,6 +70,9 @@ module.exports.config = {
|
|
|
70
70
|
3. 支持发布前自动执行 swpp \[3.2.1]
|
|
71
71
|
4. 修复构建时报错的**严重漏洞** \[3.2.2]
|
|
72
72
|
5. 插入的 DOM JS 加载方式改为 async \[3.2.2]
|
|
73
|
+
6. 修复运行 `hexo s` 时报错的问题 \[3.2.3]
|
|
74
|
+
7. 支持版本检查 \[3.2.3]
|
|
75
|
+
8. 版本检查移动到 `generateBefore` 事件中 \[3.2.4]
|
|
73
76
|
+ 3.1+
|
|
74
77
|
|
|
75
78
|
1. 支持 `swpp-backends@1.1` \[3.1.0]
|
package/dist/index.js
CHANGED
|
@@ -37,11 +37,11 @@ function start(hexo) {
|
|
|
37
37
|
const pluginConfig = config['swpp'] ?? config.theme_config['swpp'];
|
|
38
38
|
if (!pluginConfig.enable)
|
|
39
39
|
return;
|
|
40
|
-
checkVersion();
|
|
41
40
|
let init = false;
|
|
42
41
|
hexo.on('generateBefore', () => {
|
|
43
42
|
if (init)
|
|
44
43
|
return;
|
|
44
|
+
checkVersion();
|
|
45
45
|
init = true;
|
|
46
46
|
loadRules(hexo);
|
|
47
47
|
sort(hexo);
|