Build/grunt: grunt.file.copy now expects options as third argument. Fixes the version replacing

This commit is contained in:
Jörn Zaefferer 2012-04-02 15:49:34 +02:00
parent 37dcc3e21d
commit b3374b9063

View File

@ -339,7 +339,9 @@ grunt.registerMultiTask( "copy", "Copy files to destination folder and replace @
if ( /png$/.test( fileName ) ) {
grunt.file.copy( fileName, target + targetFile );
} else {
grunt.file.copy( fileName, target + targetFile, replaceVersion );
grunt.file.copy( fileName, target + targetFile, {
process: replaceVersion
});
}
});
grunt.log.writeln( "Copied " + files.length + " files." );