remove unnecessary includePaths adjusts now that we're setting file property correctly
This commit is contained in:
parent
31a3218ae6
commit
058b42c80a
14
index.js
14
index.js
|
@ -36,6 +36,8 @@ var gulpSass = function gulpSass(options, sync) {
|
|||
|
||||
opts = assign({}, options);
|
||||
opts.data = file.contents.toString();
|
||||
|
||||
// we set the file path here so that libsass can correctly resolve import paths
|
||||
opts.file = file.path;
|
||||
|
||||
// Ensure `indentedSyntax` is true if a `.sass` file
|
||||
|
@ -43,18 +45,6 @@ var gulpSass = function gulpSass(options, sync) {
|
|||
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
|
||||
if (file.sourceMap) {
|
||||
opts.sourceMap = file.path;
|
||||
|
|
Loading…
Reference in a new issue