Updated vars and includePaths based on comments
This commit is contained in:
parent
5b8d4eb319
commit
0fefd16607
12
index.js
12
index.js
|
@ -15,11 +15,7 @@ var PLUGIN_NAME = 'gulp-sass';
|
||||||
var gulpSass = function gulpSass(options, sync) {
|
var gulpSass = function gulpSass(options, sync) {
|
||||||
return through.obj(function(file, enc, cb) {
|
return through.obj(function(file, enc, cb) {
|
||||||
var opts,
|
var opts,
|
||||||
ip,
|
|
||||||
filePush,
|
filePush,
|
||||||
sassMap,
|
|
||||||
sassMapFile,
|
|
||||||
sassFileSrc,
|
|
||||||
errorM,
|
errorM,
|
||||||
callback,
|
callback,
|
||||||
result;
|
result;
|
||||||
|
@ -39,9 +35,7 @@ var gulpSass = function gulpSass(options, sync) {
|
||||||
|
|
||||||
if (opts.includePaths) {
|
if (opts.includePaths) {
|
||||||
if (typeof opts.includePaths === 'string') {
|
if (typeof opts.includePaths === 'string') {
|
||||||
ip = opts.includePaths;
|
opts.includePaths = [opts.includePaths];
|
||||||
opts.includePaths = [];
|
|
||||||
opts.includePaths.push(ip);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -60,6 +54,10 @@ var gulpSass = function gulpSass(options, sync) {
|
||||||
// Handles returning the file to the stream
|
// Handles returning the file to the stream
|
||||||
//////////////////////////////
|
//////////////////////////////
|
||||||
filePush = function filePush(sassObj) {
|
filePush = function filePush(sassObj) {
|
||||||
|
var sassMap,
|
||||||
|
sassMapFile,
|
||||||
|
sassFileSrc;
|
||||||
|
|
||||||
// Build Source Maps!
|
// Build Source Maps!
|
||||||
if (sassObj.map) {
|
if (sassObj.map) {
|
||||||
// Transform map into JSON
|
// Transform map into JSON
|
||||||
|
|
Loading…
Reference in a new issue