mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-04 19:04:32 +08:00
fix: 加载 & 热重载
This commit is contained in:
1 parent
938bd18808
commit
61b47929f6
3 files changed
+31
-6
No files matched your search
@@ -527,6 +527,7 @@ function watchProject() {
|
||||
/_.*/
|
||||
]
|
||||
});
|
||||
watcher.removeAllListeners();
|
||||
watcher.on('change', async path => {
|
||||
// 楼层热重载
|
||||
if (/project(\/|\\)floors(\/|\\).*\.js$/.test(path)) {
|
||||
|
||||
Reference in new issue
Block a user