Skip to content

Commit b3374b9

Browse files
committed
Build/grunt: grunt.file.copy now expects options as third argument. Fixes the version replacing
1 parent 37dcc3e commit b3374b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

grunt.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,9 @@ grunt.registerMultiTask( "copy", "Copy files to destination folder and replace @
339339
if ( /png$/.test( fileName ) ) {
340340
grunt.file.copy( fileName, target + targetFile );
341341
} else {
342-
grunt.file.copy( fileName, target + targetFile, replaceVersion );
342+
grunt.file.copy( fileName, target + targetFile, {
343+
process: replaceVersion
344+
});
343345
}
344346
});
345347
grunt.log.writeln( "Copied " + files.length + " files." );

0 commit comments

Comments
 (0)