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:16:17 -0400 |
commit | 97d9628929870bf1ce451d2909c12f7f69bcbf19 (patch) | |
tree | 7d908dce42098ddfdf5ba02e00102befe845d85e /grunt.js | |
parent | dc67d2c5d2764ca39b215e3daf4a517f74a0824e (diff) | |
download | jquery-ui-97d9628929870bf1ce451d2909c12f7f69bcbf19.tar.gz jquery-ui-97d9628929870bf1ce451d2909c12f7f69bcbf19.zip |
Grunt: Whitelist js and css files for @version replacement instead of blacklisting png.
(cherry picked from commit 3876c874e3f311d263aef9f99ed2780afa1d41d7)
Diffstat (limited to 'grunt.js')
-rw-r--r-- | grunt.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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." ); |