       when 'index'
         grunt.task.run('copy:index')
 
+      when 'dev'
         if NODE_ENV is 'dev'
           grunt.task.run('copy:dev')
+          whenExists 'dev/params.json', (path) ->
+            grunt.file.copy(path, 'tmp/params.json')
+        else
+          whenExists 'app/params.json', (path) ->
+            grunt.file.copy(path, 'tmp/params.json')
 
       when 'params'
         whenExists 'tmp/params.json', (path) ->

        cwd: 'app/'
        src: '**/*.js'
        dest: 'tmp/'

      paramsApp:
        src: 'app/params.json'
        dest: 'tmp/params.json'
      paramsDev:
        src: 'dev/params.json'
        dest: 'tmp/params.json'

    concat:
      js:

    'concat:html'
    'inject:mode'
    'inject:index'
    'inject:dev'
    'inject:params'
    'concat:params'

