From c3d7da0bb532ed2791155214e74bc2e466c8ac96 Mon Sep 17 00:00:00 2001 From: Ivan Voskoboinyk Date: Thu, 3 Sep 2015 10:27:28 +0300 Subject: [PATCH] Fix sass files location issue This fixes "Individual stylesheets must be in the sass directory." error, when you have compass project deeper than your gulpfile root. Explanations: https://github.com/appleboy/gulp-compass/issues/61#issuecomment-137358981 --- lib/compass.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compass.js b/lib/compass.js index 72223a6..c73575c 100644 --- a/lib/compass.js +++ b/lib/compass.js @@ -52,7 +52,7 @@ module.exports = function(files, opts, callback) { file = file.replace(/\\/g, '/'); var relPathToSass = path.relative(path.resolve(opts.project, opts.sass), file); pathsToCss.push(path.resolve(opts.project, opts.css, gutil.replaceExtension(relPathToSass, '.css'))); - filePaths.push(file); + filePaths.push(path.relative(opts.project, file)); }); var compassExecutable = 'compass';