HasLivereload tells us if livereload is enabled
()
| 206 | |
| 207 | // HasLivereload tells us if livereload is enabled |
| 208 | func (dd *Devd) HasLivereload() bool { |
| 209 | if dd.Livereload || dd.LivereloadRoutes || len(dd.WatchPaths) > 0 { |
| 210 | return true |
| 211 | } |
| 212 | return false |
| 213 | } |
| 214 | |
| 215 | // AddRoutes adds route specifications to the server |
| 216 | func (dd *Devd) AddRoutes(specs []string, notfound []string) error { |