mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Add release time to header on uncompressed file.
(cherry picked from commit 71f33cc7d9
)
This commit is contained in:
parent
1debe49ac7
commit
8ee67bde11
@ -415,10 +415,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 );
|
||||||
|
Loading…
Reference in New Issue
Block a user