Commit 71f33cc7 authored by Dave Methvin's avatar Dave Methvin

Add release time to header on uncompressed file.

parent 6fe4f92d
...@@ -411,10 +411,8 @@ module.exports = function( grunt ) { ...@@ -411,10 +411,8 @@ module.exports = function( grunt ) {
// Embed Version // Embed Version
// Embed Date // Embed Date
compiled = compiled.replace( /@VERSION/g, version ) compiled = compiled.replace( /@VERSION/g, version )
.replace( "@DATE", function () { // yyyy-mm-ddThh:mmZ
// YYYY-MM-DD .replace( /@DATE/g, ( new Date() ).toISOString().replace( /:\d+\.\d+Z$/, "Z" ) );
return ( new Date() ).toISOString().replace( /T.*/, "" );
});
// Write concatenated source to file // Write concatenated source to file
grunt.file.write( name, compiled ); grunt.file.write( name, compiled );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment