 
 # global variables
 
-env = if $.util.env.mode then $.util.env.mode else 'development'
+env = if $.util.env.mode? then $.util.env.mode else 'development'
 compressed = env == 'production'
 debug = $.util.env.debug?
 paths =

  web: 'src/main/web'
  build: 'build'
reload = browserSync.reload


# preprocessing tasks


# clean tasks

gulp.task 'clean', ['clean:before-build'], (cb) ->
  rm [
    '*.log'
  ], cb

gulp.task 'clean:before-build', (cb) ->
  rm [
    'build'
  ], cb

gulp.task 'clean:after-build', (cb) ->
