     'src/coffee/worker.coffee'
   ]
 
+printError = (err) ->
+  console.error err
+  @emit 'end'
+
 gulp.task 'coffee', ->
   b = browserify(
     entries: paths.entries

  )

  b.bundle()
    .pipe(source paths.app)
    .pipe(buffer())
    .pipe(sourcemaps.init loadMaps: true)

  gulp.src(paths.less)
    .pipe(sourcemaps.init())
      .pipe(less())
      .on('error', printError)
      .pipe(minifyCSS())
      .pipe(rename extname: '.min.css')
    .pipe(sourcemaps.write())
