     gulp.start type
 
     if @configuration.watch
-      stream = gulp.watch allInputs, [type]
-      stream.on 'change', @eventWatched type
+      gulp.on 'stop', (args...) => @reload args...
+      gulp.watch allInputs, [type]
+        .on 'change', @eventWatched type
 
 
 module.exports = {GLP}

        @initialize configuration

  eventWatched: (filetype) -> (options) =>
    {type, path} = options

    if @configuration.static.enabled
      relatedFiles = @outputs[filetype]
    else
      relatedFiles = [path]

    @liveReload?.changed
      body:
        files: relatedFiles

  initialize: (@configuration) ->
    watchStatus = chalk.white 'enabled' if @configuration.watch



class GLP
  changedFiles: []

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

