hexo-server-live
Advanced tools
+4
-0
@@ -0,1 +1,5 @@ | ||
| ## v0.2.11 (2024-01-20) | ||
| - Fix: return other type in source. | ||
| ## v0.2.10 (2024-01-18) | ||
@@ -2,0 +6,0 @@ |
+2
-2
@@ -74,3 +74,3 @@ hexo.extend.filter.register("server_middleware", (app) => { | ||
| } | ||
| else if (path.startsWith("scripts/")) { | ||
| else if (!path.includes("/") || path.startsWith("scripts/")) { | ||
| type = null; | ||
@@ -90,3 +90,3 @@ break; | ||
| js: "script" | ||
| }[output]; | ||
| }[output] || "other"; | ||
| break; | ||
@@ -93,0 +93,0 @@ } |
+1
-1
@@ -40,3 +40,3 @@ module.exports = function({ | ||
| } | ||
| else { | ||
| else if (data.type !== null) { | ||
| location.reload(); | ||
@@ -43,0 +43,0 @@ } |
+1
-1
| { | ||
| "name": "hexo-server-live", | ||
| "version": "0.2.10", | ||
| "version": "0.2.11", | ||
| "description": "Live reload while source file changed for Hexo.", | ||
@@ -5,0 +5,0 @@ "main": "index", |
8196
1.49%