changed var srcs to filteredSources + Travis Fix
I changed var srcs to filteredSources to be more semantic and closer to the existing formatting. I moved the var declaration to the top level in an attempt to comply with the established coding standards.
This commit is contained in:
parent
9c042f3cc2
commit
19f54ce753
9
index.js
9
index.js
|
@ -69,7 +69,8 @@ var gulpSass = function gulpSass(options, sync) {
|
||||||
sassMapFile,
|
sassMapFile,
|
||||||
sassFileSrc,
|
sassFileSrc,
|
||||||
sassFileSrcPath,
|
sassFileSrcPath,
|
||||||
sourceFileIndex;
|
sourceFileIndex
|
||||||
|
filteredSources;
|
||||||
|
|
||||||
// Build Source Maps!
|
// Build Source Maps!
|
||||||
if (sassObj.map) {
|
if (sassObj.map) {
|
||||||
|
@ -90,12 +91,12 @@ var gulpSass = function gulpSass(options, sync) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Remove 'stdin' from souces and replace with filenames!
|
// Remove 'stdin' from souces and replace with filenames!
|
||||||
var srcs = sassMap.sources.filter(function(src) {
|
filteredSources = sassMap.sources.filter(function(src) {
|
||||||
if (src.indexOf('stdin') === -1) {
|
if (src.indexOf('stdin') === -1) {
|
||||||
return src;
|
return src;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
sassMap.sources = srcs;
|
sassMap.sources = filteredSources;
|
||||||
sassMap.sources.unshift(sassFileSrc);
|
sassMap.sources.unshift(sassFileSrc);
|
||||||
// Replace the map file with the original file name (but new extension)
|
// Replace the map file with the original file name (but new extension)
|
||||||
sassMap.file = gutil.replaceExtension(sassFileSrc, '.css');
|
sassMap.file = gutil.replaceExtension(sassFileSrc, '.css');
|
||||||
|
|
Loading…
Reference in a new issue