         @initialize configuration
 
   eventWatched: (filetype) -> (options) =>
-    {type, path} = options
+    if @configuration.static.enabled
+      @changedFiles = @changedFiles.concat @outputs[filetype]
+    else
+      {type, path} = options
+      @changedFiles.push path
 
-    if @configuration.static.enabled
-      relatedFiles = @outputs[filetype]
-    else
-      relatedFiles = [path]
-
+  reload: ->
+    console.log 'Reloading', @changedFiles
     @liveReload?.changed
       body:
-        files: relatedFiles
+        files: @changedFiles
+
+    @changedFiles = []
 
   initialize: (@configuration) ->
     watchStatus = chalk.white 'enabled' if @configuration.watch

    gulp.start type

    if @configuration.watch
      stream = gulp.watch allInputs, [type]
      stream.on 'change', @eventWatched type


module.exports = {GLP}



class GLP
  changedFiles: []

  constructor: (task, @configurator) ->
    @configure task

