Skip to content
Permalink
Browse files

Grunt: Whitelist js and css files for @Version replacement instead of…

… blacklisting png.
  • Loading branch information...
scottgonzalez committed Apr 2, 2012
1 parent 585ef70 commit 3876c874e3f311d263aef9f99ed2780afa1d41d7
Showing with 3 additions and 3 deletions.
  1. +3 −3 grunt.js
@@ -338,12 +338,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." );

0 comments on commit 3876c87

Please sign in to comment.
You can’t perform that action at this time.