Merge pull request #474 from xzyfer/feat/fix-include-paths
Restore includePaths logic
This commit is contained in:
commit
f049f688a1
12
index.js
12
index.js
|
@ -45,6 +45,18 @@ var gulpSass = function gulpSass(options, sync) {
|
||||||
opts.indentedSyntax = true;
|
opts.indentedSyntax = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ensure file's parent directory in the include path
|
||||||
|
if (opts.includePaths) {
|
||||||
|
if (typeof opts.includePaths === 'string') {
|
||||||
|
opts.includePaths = [opts.includePaths];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
opts.includePaths = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
opts.includePaths.unshift(path.dirname(file.path));
|
||||||
|
|
||||||
// Generate Source Maps if plugin source-map present
|
// Generate Source Maps if plugin source-map present
|
||||||
if (file.sourceMap) {
|
if (file.sourceMap) {
|
||||||
opts.sourceMap = file.path;
|
opts.sourceMap = file.path;
|
||||||
|
|
Loading…
Reference in a new issue