Comparing version 0.5.1 to 0.5.2
10
index.js
@@ -12,2 +12,4 @@ var map = require('map-stream') | ||
function nodeSass (file, cb) { | ||
var fileDir = path.dirname(file.path); | ||
var addedLocalDirPath = false; | ||
@@ -23,7 +25,6 @@ if (file.isNull()) { | ||
var fileDir = path.dirname(file.path); | ||
if (opts.includePaths && Array.isArray(opts.includePaths)) { | ||
if (opts.includePaths.indexOf(fileDir) === -1) { | ||
opts.includePaths.push(fileDir) | ||
opts.includePaths.push(fileDir); | ||
addedLocalDirPath = true; | ||
} | ||
@@ -49,2 +50,5 @@ } else { | ||
sass.render(opts); | ||
if (addedLocalDirPath) opts.includePaths.pop(); | ||
} | ||
@@ -51,0 +55,0 @@ |
{ | ||
"name": "gulp-sass", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Gulp plugin for sass", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
8524
157