Skip to content

Commit 9d7f217

Browse files
rdworthjzaefferer
authored andcommitted
Support nested resources in build-resources task
1 parent d68a54e commit 9d7f217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ grunt.registerMultiTask( "build-resources", "Copy resources", function() {
7575
grunt.file.mkdir( targetDir );
7676

7777
grunt.utils.async.forEachSeries( files, function( fileName, fileDone ) {
78-
grunt.file.copy( fileName, targetDir + path.basename( fileName ) );
78+
grunt.file.copy( fileName, targetDir + fileName.replace( /^.+?\//, "" ) );
7979
fileDone();
8080
}, function() {
8181
if ( task.errorCount ) {

0 commit comments

Comments
 (0)