 
   each watched, exists, (err, existing) ->
     watchedFiles = watched.filter((_, index) -> existing[index])
-    watcher = chokidar.watch watchedFiles,
-      ignored: fs_utils.ignored,
-      persistent: config.persistent
-    watcher
-      .on 'add', (path) ->
-        debug "File '#{path}' received event 'add'"
-      .on 'change', (path) ->
-        debug "File '#{path}' received event 'change'"
-      .on 'unlink', (path) ->
-        debug "File '#{path}' received event 'unlink'"
-      .on('error', logger.error)
-    callback null, watcher
+    params = ignored: fs_utils.ignored, persistent: config.persistent
+    callback null, chokidar.watch watchedFiles, params
 
 # Generate function that will check if plugin can work with file.
 #

      else
        onChange()
        fileList.emit 'unlink', path

# persistent - Boolean: should brunch build the app only once or watch it?
# options    - Object: {configPath, optimize, server, port}. Only configPath is

    , {}

  watcher
    .on('error', logger.error)
    .on 'add', (path) ->
      isConfigFile = possibleConfigFiles[path]
      isPluginsFile = path is config.paths.packageConfig
