     .pipe gulp.dest outapp
 
 
-buildHtml = (transform = gutil.noop()) ->
+# reloader will inject <script> tag
+htmlInject = gutil.noop()
+
+# copy .html-files
+gulp.task 'html', ->
   gulp.src paths.html
-    .pipe transform
+    .pipe htmlInject
     .pipe changed outapp
     .pipe gulp.dest outapp
-
-
-# copy .html-files
-gulp.task 'html', -> buildHtml()
 
 
 # compile less


gulp.task 'default', ['package', 'coffee', 'html', 'less']

gulp.task 'watch', ['reloader'], ->
  # watch to rebuild
  sources = (v for k, v of paths)
  gulp.watch sources, ['default']

    .pipe gulp.dest outui

  # inject scripts in html
  #htmlInject = reloader.inject()

  # watch rebuilt stuff
  gulp.watch "#{outui}/**/*", reloader.onChange
