module.exports = function( grunt ){
    grunt.registerTask('buildIndex', function(){
        var done = this.async(),
            fs = require('fs'),
            fileStr;

        fs.readFile('./build/templates/index.html', function( err, data ) {
            var content = new String(data),
                newContent;

            if ( fs.existsSync('./.production') ) {
                newContent = content.replace('{{ srcFile }}', 'FooFighter.min.js');
            } else {
                newContent = content.replace('{{ srcFile }}', 'FooFighter.js');
            }

            fs.writeFileSync('./index.html', newContent);
        });

    });
};

@@ -145,29 +145,8 @@
 fs')
-,%0A            fileStr
 ;%0A%0A 
@@ -290,16 +290,37 @@
 wContent
+,%0A                msg
 ;%0A%0A     
@@ -446,24 +446,88 @@
 r.min.js');%0A
+                msg = 'Built production version of index.html';%0A
             
@@ -631,66 +631,201 @@
     
-%7D%0A%0A            fs.writeFileSync('./index.html', newContent
+    msg = 'Built development version of index.html';%0A            %7D%0A%0A            fs.writeFileSync('./index.html', newContent);%0A            grunt.log.write(msg + '%5Cn').ok();%0A            done(true
 );%0A 

add messaging to buildIndex task