   del(['./dist/*.css'], done)
 
 gulp.task '_copyResources', ['_cleanResources'], ->
-  destDir = './dist/'
-  gulp.src('./resources/images/**/*.svg')
-    .pipe(flatten())
+  destDir = './dist/style/resources'
+  baseDir = './resources/images'
+  gulp.src("#{baseDir}/**/*.svg", base: baseDir)
     .pipe(gulp.dest(destDir))
 
 gulp.task '_cleanResources', (done) ->

            if req.url.match(/\.ttf$/)
                res.setHeader('Content-Type', 'application/octet-stream')
            next()
            
    ]
  connect.server(config)


    './dist/tutor.min-*.js',
    './dist/tutor.min-*.css',
    './dist/fonts/*',
    './dist/style/resources/**/*.svg'], {base: './dist'})
    .pipe(tar('archive.tar'))
    .pipe(gzip())
    .pipe(gulp.dest('./dist/'))
