 
 # build tasks
 
-gulp.task 'build:statics-i18n', [], ->
-  from [paths.web + '/i18n/*.json']
+gulp.task 'build:statics-i18n', ->
+  from [
+    paths.web + '/i18n/*.json'
+  ]
   .pipe to paths.build + '/i18n/'
 
-gulp.task 'build:statics', ['build:statics-i18n'], ->
-  from [paths.web + '/*.html']
+gulp.task 'build:statics-root-files', ->
+  from [
+    paths.web + '/*.html'
+    paths.web + '/*.ico'
+  ]
   .pipe to paths.build
+
+gulp.task 'build:statics', (cb) ->
+  sequence ['build:statics-i18n', 'build:statics-root-files'], cb
 
 gulp.task 'build:vendors', [], ->
   vendorsFiles = do bowerFiles


gulp.task 'build', [], (cb) ->
  sequence 'clean:before-build',
    'compile:sass', ['hints:js', 'hints:html'], ['build:statics', 'build:vendors'],
    ['build:ng-conf', 'build:ng-templates', 'build:ng-app'], 'package:ng',
    'clean:after-build', cb

gulp.task 'default', ['build']


log "Build in #{ args.env } mode."
log 'Debug is ' + (if args.debug then 'enabled' else 'disabled') + '.'
log 'Paths are :\n', paths

# preprocessing tasks

