     'src/coffee/app.coffee'
   ]
 
+printError = (err) ->
+  console.log err
+  @emit 'end'
+
 gulp.task 'coffee', ->
   bundle = transform (files) ->
     browserify(


  gulp.src(paths.entry)
    .pipe(bundle)
    .pipe(sourcemaps.init loadMaps: true)
      .pipe(uglify())
      .pipe(rename extname: '.min.js')

  gulp.src(paths.less)
    .pipe(sourcemaps.init())
      .pipe(less plugins: [cleancss])
      .on('error', printError)
      .pipe(rename extname: '.min.css')
    .pipe(sourcemaps.write())
    .pipe(gulp.dest paths.css)
