Skip to content

Commit 3251aea

Browse files
committed
Merge pull request #114 from grawk/devel
increase flexibility in custom layout function
2 parents e1a9596 + 60dc218 commit 3251aea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/lib/asset_copier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Copier.prototype.copyAssets = function(type, assets) {
4040
var destination;
4141

4242
var isFile = fs.statSync(source).isFile();
43-
var destinationDir = path.join(self.options.targetDir, self.options.layout(type, pkg));
43+
var destinationDir = path.join(self.options.targetDir, self.options.layout(type, pkg, source));
4444
grunt.file.mkdir(destinationDir);
4545
if (isFile) {
4646
destination = path.join(destinationDir, path.basename(source));

0 commit comments

Comments
 (0)