Skip to content

Commit

Permalink
manual "merge"
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzk committed Dec 17, 2015
1 parent 38fe63b commit d11921e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,14 @@ module.exports = function (content) {
}

// indentedSyntax is a boolean flag
sassOptions.indentedSyntax = Boolean(sassOptions.indentedSyntax);
var ext = path.extname(resourcePath);

// If we are compling sass and indentedSyntax isn't set, automatically set it.
if (ext && ext.toLowerCase() === '.sass' && sassOptions.indentedSyntax === undefined) {
sassOptions.indentedSyntax = true;
} else {
sassOptions.indentedSyntax = Boolean(sassOptions.indentedSyntax);
}

// Allow passing custom importers to `node-sass`. Accepts `Function` or an array of `Function`s.
sassOptions.importer = sassOptions.importer ? [].concat(sassOptions.importer) : [];
Expand Down

0 comments on commit d11921e

Please # to comment.