@spirobel/mininext 0.8.0 → 0.8.1
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/dist/backend/html.js +2 -2
- package/package.json +1 -1
package/dist/backend/html.js
CHANGED
|
@@ -56,7 +56,7 @@ export async function buildSkeleton({ stringLiterals, values, root, mini, config
|
|
|
56
56
|
headers: { "Content-Type": "application/json; charset=utf-8" },
|
|
57
57
|
});
|
|
58
58
|
const hmrReloadScript = `<script>
|
|
59
|
-
setInterval(reload,
|
|
59
|
+
setInterval(reload, 1000);
|
|
60
60
|
async function reload(){
|
|
61
61
|
try {
|
|
62
62
|
const res = await fetch("${hmrUrl}");
|
|
@@ -202,7 +202,7 @@ export async function hmr(skel, params) {
|
|
|
202
202
|
const watcherCode = `
|
|
203
203
|
import fs from "node:fs";
|
|
204
204
|
const files=[${escapedPaths}];
|
|
205
|
-
files.forEach(f=>fs.watchFile(f,{interval:
|
|
205
|
+
files.forEach(f=>fs.watchFile(f,{interval:1000},()=>{
|
|
206
206
|
console.log("file changed:",f);
|
|
207
207
|
process.exit(0);
|
|
208
208
|
})
|