diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-04-02 13:15:54 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-04-02 13:15:54 -0400 |
commit | 3876c874e3f311d263aef9f99ed2780afa1d41d7 (patch) | |
tree | 8645cb7a0f8b845fcf093d07a559da9915a1d3f4 /grunt.js | |
parent | 585ef702ef117232778113efc9979d51549abeeb (diff) | |
download | jquery-ui-3876c874e3f311d263aef9f99ed2780afa1d41d7.tar.gz jquery-ui-3876c874e3f311d263aef9f99ed2780afa1d41d7.zip |
Grunt: Whitelist js and css files for @version replacement instead of blacklisting png.
Diffstat (limited to 'grunt.js')
-rw-r--r-- | grunt.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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." ); |