mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
webpack hot reload support
This commit is contained in:
1 parent
d8e1a63f99
commit
0ee306d0cf
15 files changed
+89
-63
No files matched your search
@@ -220,11 +220,9 @@ export async function wiki(pending: string[], fail: string[]) {
|
||||
try {
|
||||
const categories = fs.readdirSync(p);
|
||||
for (const category of categories) {
|
||||
console.log('category', category);
|
||||
if (!fs.statSync(p).isDirectory()) return;
|
||||
const pages = fs.readdirSync(path.join(p, category));
|
||||
if (!global.Hydro.wiki[category]) global.Hydro.wiki[category] = {};
|
||||
console.log(pages);
|
||||
for (const page of pages) {
|
||||
const c = fs.readFileSync(path.join(p, category, page)).toString().split('\n');
|
||||
const pagename = page.split('.')[0];
|
||||
|
||||
Reference in new issue
Block a user