We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9e14bf4 + 147021b commit 7ec1b3cCopy full SHA for 7ec1b3c
runner/engine.go
@@ -309,8 +309,6 @@ func (e *Engine) start() {
309
case <-e.exitCh:
310
return
311
case filename = <-e.eventCh:
312
- time.Sleep(e.config.buildDelay())
313
- e.flushEvents()
314
if !e.isIncludeExt(filename) {
315
continue
316
}
@@ -320,10 +318,15 @@ func (e *Engine) start() {
320
318
321
319
322
+
+ time.Sleep(e.config.buildDelay())
323
+ e.flushEvents()
324
325
// clean on rebuild https://stackoverflow.com/questions/22891644/how-can-i-clear-the-terminal-screen-in-go
326
if e.config.Screen.ClearOnRebuild {
327
fmt.Println("\033[2J")
328
329
330
e.mainLog("%s has changed", e.config.rel(filename))
331
case <-firstRunCh:
332
// go down
0 commit comments