Skip to content

Commit

Permalink
Return correct destination path
Browse files Browse the repository at this point in the history
  • Loading branch information
quaertym committed Apr 17, 2016
1 parent eae5dc8 commit 82363bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -76,8 +76,8 @@ CompassCompilerPlugin.prototype.toTree = function(tree, inputPath, outputPath, i
destDir: outputDir,
files: [fileName],
getDestinationPath: function(relativePath) {
if (relativePath === path.posix.join(this.destDir, fileName)) {
return path.posix.join(this.destDir, outputFileName);
if (relativePath === fileName) {
return outputFileName;
}

return relativePath;
Expand Down

0 comments on commit 82363bc

Please sign in to comment.