Make 'karun -w -r ...' do watching for more than one iteration (#190)
This commit is contained in:
parent
8a7f05ac2a
commit
12b98b2338
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ proc build(rest: string, selectedCss: string, run: bool, watch: bool) =
|
|||
else:
|
||||
exec cmd
|
||||
let dest = "app" & ".html"
|
||||
let script = if run and watch: websocket else: ""
|
||||
let script = if watch: websocket else: ""
|
||||
writeFile(dest, html % ["app", selectedCss, script])
|
||||
if run: openDefaultBrowser("http://localhost:8080")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue