Skip to content

Commit bbc211c

Browse files
committed
fix ssg when crawling TypeScript file
1 parent 7d99bb1 commit bbc211c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

webui/ssg/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ const Server = require('./server');
1616
console.log('skip ' + url)
1717
return
1818
}
19+
if (path.extname(url.pathname) === '.ts') {
20+
console.log('skip ' + url);
21+
return;
22+
}
1923
if (visited.has(url.pathname)) {
2024
return
2125
}

0 commit comments

Comments
 (0)