mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Grunt: Whitelist js and css files for @version replacement instead of blacklisting png.
(cherry picked from commit 3876c874e3
)
This commit is contained in:
parent
dc67d2c5d2
commit
97d9628929
6
grunt.js
6
grunt.js
@ -340,12 +340,12 @@ grunt.registerMultiTask( "copy", "Copy files to destination folder and replace @
|
||||
}
|
||||
files.forEach(function( fileName ) {
|
||||
var targetFile = strip ? fileName.replace( strip, "" ) : fileName;
|
||||
if ( /png$/.test( fileName ) ) {
|
||||
grunt.file.copy( fileName, target + targetFile );
|
||||
} else {
|
||||
if ( /(js|css)$/.test( fileName ) ) {
|
||||
grunt.file.copy( fileName, target + targetFile, {
|
||||
process: replaceVersion
|
||||
});
|
||||
} else {
|
||||
grunt.file.copy( fileName, target + targetFile );
|
||||
}
|
||||
});
|
||||
grunt.log.writeln( "Copied " + files.length + " files." );
|
||||
|
Loading…
Reference in New Issue
Block a user