mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 23:47:56 -05:00
Add release time to header on uncompressed file.
(cherry picked from commit 71f33cc7d9)
This commit is contained in:
@@ -415,10 +415,8 @@ module.exports = function( grunt ) {
|
||||
// Embed Version
|
||||
// Embed Date
|
||||
compiled = compiled.replace( /@VERSION/g, version )
|
||||
.replace( "@DATE", function () {
|
||||
// YYYY-MM-DD
|
||||
return ( new Date() ).toISOString().replace( /T.*/, "" );
|
||||
});
|
||||
// yyyy-mm-ddThh:mmZ
|
||||
.replace( /@DATE/g, ( new Date() ).toISOString().replace( /:\d+\.\d+Z$/, "Z" ) );
|
||||
|
||||
// Write concatenated source to file
|
||||
grunt.file.write( name, compiled );
|
||||
|
||||
Reference in New Issue
Block a user