grunts/grunt-build.js
function (compiled) {
        // 01. Embed version
        var version = grunt.config('pkg.version');
        compiled = compiled.replace(/@VERSION/g, version);

        // 02.  Embed Date
        var date = (new Date()).toISOString().replace(/:\d+\.\d+Z$/, 'Z');
        compiled = compiled.replace(/@DATE/g, date);

        grunt.file.write(self.data.outFile, compiled);
      }
function (compiled) {
        // 01. Embed version
        var version = grunt.config('pkg.version');
        compiled = compiled.replace(/@VERSION/g, version);

        // 02.  Embed Date
        var date = (new Date()).toISOString().replace(/:\d+\.\d+Z$/, 'Z');
        compiled = compiled.replace(/@DATE/g, date);

        grunt.file.write(self.data.outFile, compiled);
      }
function ( compiled ) { // 01. Embed version var version = grunt . config ( 'pkg.version' ) ; compiled = compiled . replace ( / @VERSION / g , version ) ; // 02.  Embed Date var date = ( new Date ( ) ) . toISOString ( ) . replace ( / :\d+\.\d+Z$ / , 'Z' ) ; compiled = compiled . replace ( / @DATE / g , date ) ; grunt . file . write ( self . data . outFile , compiled ) ; }
Handle final output from the optimizer
Handle final output from the optimizer