Skip to content

Commit fe5416c

Browse files
add include path for the base dir of current file
1 parent 7378d4b commit fe5416c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@
1818
includes = this.includePaths || [],
1919
outputStyle = this.outputStyle || 'compressed',
2020
imagePath = this.imagePath || '/',
21-
outputDir = this.outputDir || path.dirname(filename);
21+
outputDir = this.outputDir || path.dirname(filename),
22+
fileDir = path.dirname(path.join(basePath, filename));
2223

2324
if (isSassFile(filename) === true) {
2425
// Append the file's base path to the available include paths.
25-
includes.push(basePath);
26+
includes.push(fileDir);
2627

2728
// Compile the file using SASS.
2829
sass.render({

0 commit comments

Comments
 (0)