@@ -153,7 +153,7 @@ func Application(f *flags.Dev, logger *clilogger.CLILogger) error {
153
153
}()
154
154
155
155
// Watch for changes and trigger restartApp()
156
- debugBinaryProcess , err = doWatcherLoop (cwd , buildOptions , debugBinaryProcess , f , exitCodeChannel , quitChannel , f .DevServerURL (), legacyUseDevServerInsteadofCustomScheme )
156
+ debugBinaryProcess , err = doWatcherLoop (cwd , projectConfig . ReloadDirectories , buildOptions , debugBinaryProcess , f , exitCodeChannel , quitChannel , f .DevServerURL (), legacyUseDevServerInsteadofCustomScheme )
157
157
if err != nil {
158
158
return err
159
159
}
@@ -326,9 +326,9 @@ func restartApp(buildOptions *build.Options, debugBinaryProcess *process.Process
326
326
}
327
327
328
328
// doWatcherLoop is the main watch loop that runs while dev is active
329
- func doWatcherLoop (cwd string , buildOptions * build.Options , debugBinaryProcess * process.Process , f * flags.Dev , exitCodeChannel chan int , quitChannel chan os.Signal , devServerURL * url.URL , legacyUseDevServerInsteadofCustomScheme bool ) (* process.Process , error ) {
329
+ func doWatcherLoop (cwd string , reloadDirs string , buildOptions * build.Options , debugBinaryProcess * process.Process , f * flags.Dev , exitCodeChannel chan int , quitChannel chan os.Signal , devServerURL * url.URL , legacyUseDevServerInsteadofCustomScheme bool ) (* process.Process , error ) {
330
330
// create the project files watcher
331
- watcher , err := initialiseWatcher (cwd )
331
+ watcher , err := initialiseWatcher (cwd , reloadDirs )
332
332
if err != nil {
333
333
logutils .LogRed ("Unable to create filesystem watcher. Reloads will not occur." )
334
334
return nil , err
0 commit comments