(function() {
  var compileConfig, cp, path;

  path = require('path');

  cp = require('cp');

  module.exports = compileConfig = function(grunt) {
    var helpers;
    helpers = require('../../helpers')(grunt);
    return {
      run: function(fn) {
        var compiled, configXml, dest, root, phonegapPath, phonegapRoot, template;
        grunt.log.writeln('Compiling config.xml');
        phonegapPath = helpers.config('path');
        phonegapRoot = helpers.config('root');
        configXml = helpers.config('config');
        dest = path.join(phonegapPath, 'www', 'config.xml');
        root = path.join(phonegapRoot, 'config.xml');
        if (grunt.util.kindOf(configXml) === 'string') {
          grunt.log.writeln("Copying static " + configXml);
          return cp(configXml, dest, function(err) {
            if (fn) {
              return fn(err);
            }
          });
        } else {
          grunt.log.writeln("Compiling template " + configXml.template);
          template = grunt.file.read(configXml.template);
          compiled = grunt.template.process(template, {
            data: configXml.data
          });
          grunt.file.write(dest, compiled);
          if (fn) {
            return fn();
          }
        }
      }
    };
  };

}).call(this);

(function() {
  var compileConfig, cp, path;

  path = require('path');

  cp = require('cp');

  module.exports = compileConfig = function(grunt) {
    var helpers;
    helpers = require('../../helpers')(grunt);
    return {
      run: function(fn) {
        var compiled, configXml, dest, root, phonegapPath, phonegapRoot, template;
        grunt.log.writeln('Compiling config.xml');
        phonegapPath = helpers.config('path');
        phonegapRoot = helpers.config('root');
        configXml = helpers.config('config');
        dest = path.join(phonegapPath, 'www', 'config.xml');
        root = path.join(phonegapRoot, 'config.xml');
        if (grunt.util.kindOf(configXml) === 'string') {
          grunt.log.writeln("Copying static " + configXml);
          yield cp(configXml, root);
          return cp(configXml, dest, function(err) {
            if (fn) {
              return fn(err);
            }
          });
        } else {
          grunt.log.writeln("Compiling template " + configXml.template);
          template = grunt.file.read(configXml.template);
          compiled = grunt.template.process(template, {
            data: configXml.data
          });
          grunt.file.write(root, compiled);
          grunt.file.write(dest, compiled);
          if (fn) {
            return fn();
          }
        }
      }
    };
  };

}).call(this);

Update compile_config.js